<div dir="ltr"><div dir="ltr">Thanks for the reply John,<br><br>Excuse me if I sound a bit daft here... can I add javascript to cgit, or how else would I collapse reposection classes?</div><br>Thanks again<br>Reuben<br><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Jul 24, 2019 at 1:45 PM John Keeping <<a href="mailto:john@keeping.me.uk">john@keeping.me.uk</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On Wed, Jul 24, 2019 at 01:01:27PM -0500, Reuben Popp wrote:<br>
> Excuse me if this has been answered before, but is there a way to nest<br>
> repositories under a common directory visually in cgit?<br>
> <br>
> For example,<br>
> <br>
> root_directory (not a repo)<br>
> |- Project A (directory, not a repo)<br>
> |       |- Project A component 1 (repo)<br>
> |       |- Project A component 2 (repo)<br>
> |- Project B (repo)<br>
> |- Project C (directory, not a repo)<br>
> |       |- Project C subproject AA (repo)<br>
> |       |- Project C subproject AB (repo)<br>
> |       |- Project C Archive (directory, not a repo)<br>
> |              |- Project C archived subproject A (repo)<br>
> etc.<br>
> <br>
> Going to the cgit frontend, I would see the directories (or links) for<br>
> Project A, B and C...<br>
<br>
You can't do exactly this, but you can generate sections from the path<br>
to the repository which adds headings to the list of repositories.  See<br>
"section" and "section-from-path" in cgitrc(5).<br>
<br>
For hierarchical paths, it's also possible to view a subset of the tree<br>
by going to (for example) /cgit/directory_a/directory_b/ but I don't<br>
think anything generates links to those sublists.<br>
<br>
I remember in the past somewhere had added a custom script to collapse<br>
sections by default, but I can't find a reference for that now.  That<br>
should be reasonably simple by matching on the "reposection" class.<br>
<br>
<br>
Regards,<br>
John<br>
</blockquote></div></div>