Skip to content

Commit

Permalink
Add better nav structures
Browse files Browse the repository at this point in the history
  • Loading branch information
ShaneCurcuru committed Nov 24, 2024
1 parent 3e8e983 commit 41f3def
Show file tree
Hide file tree
Showing 5 changed files with 44 additions and 10 deletions.
25 changes: 25 additions & 0 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ GEM
specs:
addressable (2.8.6)
public_suffix (>= 2.0.2, < 6.0)
ast (2.4.2)
colorator (1.1.0)
concurrent-ruby (1.2.3)
em-websocket (0.5.3)
Expand Down Expand Up @@ -38,6 +39,7 @@ GEM
jekyll (>= 3.8, < 5.0)
jekyll-watch (2.2.1)
listen (~> 3.0)
json (2.7.1)
just-the-docs (0.5.0)
jekyll (>= 3.8.5)
jekyll-seo-tag (>= 2.0)
Expand All @@ -46,20 +48,42 @@ GEM
rexml
kramdown-parser-gfm (1.1.0)
kramdown (~> 2.0)
language_server-protocol (3.17.0.3)
liquid (4.0.4)
listen (3.8.0)
rb-fsevent (~> 0.10, >= 0.10.3)
rb-inotify (~> 0.9, >= 0.9.10)
mercenary (0.4.0)
parallel (1.26.3)
parser (3.3.0.5)
ast (~> 2.4.1)
racc
pathutil (0.16.2)
forwardable-extended (~> 2.6)
public_suffix (5.0.4)
racc (1.7.3)
rainbow (3.1.1)
rake (13.1.0)
rb-fsevent (0.11.2)
rb-inotify (0.10.1)
ffi (~> 1.0)
regexp_parser (2.9.2)
rexml (3.3.9)
rouge (4.2.0)
rubocop (1.61.0)
json (~> 2.3)
language_server-protocol (>= 3.17.0)
parallel (~> 1.10)
parser (>= 3.3.0.2)
rainbow (>= 2.2.2, < 4.0)
regexp_parser (>= 1.8, < 3.0)
rexml (>= 3.2.5, < 4.0)
rubocop-ast (>= 1.30.0, < 2.0)
ruby-progressbar (~> 1.7)
unicode-display_width (>= 2.4.0, < 3.0)
rubocop-ast (1.30.0)
parser (>= 3.2.1.0)
ruby-progressbar (1.13.0)
safe_yaml (1.0.5)
sass-embedded (1.70.0)
google-protobuf (~> 3.25)
Expand Down Expand Up @@ -96,6 +120,7 @@ PLATFORMS
DEPENDENCIES
jekyll (~> 4.3)
just-the-docs (= 0.5.0)
rubocop

RUBY VERSION
ruby 3.3.0p0
Expand Down
6 changes: 6 additions & 0 deletions _includes/foundation-list-nav.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@

{% capture fdnlistnav %}
<small id="tagindex">View the FOSS Foundation Directory by:</small><br/>
<a href="/listing">Alphabetical</a> | <a href="/categories/#newProjects">New Projects?</a> | <a href="/categories/#fiscalHost">Fiscal Hosting?</a> | <a href="/categories/#nonprofitStatus">By Nonprofit Type</a> | <a href="/categories/#addressCountry">By Country</a> | <a href="/categories/#coc">By Code of Conduct</a> | <a href="/openapi">OpenAPI</a><br/>
<small>Other datasets: <a href="/sponsorships">Sponsorships</a> | <a href="/taxes">US 990 Taxes</a> | <a href="/entities">Unincorporated Projects</a> | <a href="/projects">Projects At Foundations</a> | <a href="/commercial">Commercial Orgs</a></small>
{% endcapture %}
15 changes: 7 additions & 8 deletions _layouts/categories.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@

<hr id="tagindex" />
{% capture mininav %}<a href="#newProjects">Accepts New Projects?</a> | <a href="#fiscalHost">Fiscal Hosting?</a> | <a href="#nonprofitStatus">Nonprofit Type</a> | <a href="#addressCountry">By Country</a> | <a href="#coc">Codes of Conduct</a>{% endcapture %}
{{ mininav }}
<section id="newProjects">
<h3>Accepts New Projects?</h3>
<p>These organizations actively accept new projects for hosting, and notes if they are a <a href="#fiscalHost">Fiscal Host</a>.</p>
Expand All @@ -31,8 +30,8 @@ <h3>Foundations By Country</h3>
<table>
<thead>
<tr>
<th style="text-align: left">US</th>
<th style="text-align: left">Non-US</th>
<th style="text-align: left"><h4>US Foundations</h4></th>
<th style="text-align: left"><h4>Non-US Foundations</h4></th>
</tr>
</thead>
<tbody>
Expand All @@ -56,7 +55,7 @@ <h3>Foundations By Nonprofit Types</h3>
<table>
<thead>
<tr>
<th style="text-align: left">US 501(c)(3)</th>
<th style="text-align: left"><h4>US 501(c)(3)</h4></th>
<th style="text-align: left">All Others</th>
</tr>
</thead>
Expand All @@ -68,11 +67,11 @@ <h3>Foundations By Nonprofit Types</h3>
</ul>
</td>
<td style="text-align: left">
<p>US 501(c)(6)</p>
<h4>US 501(c)(6)</h4>
<ul id="Nonprofit501c6">
{% for fdn in site.foundations %}{% if fdn.nonprofitStatus == 'Nonprofit501c6' %}<li><a href="/foundations/{{ fdn.identifier }}">{{ fdn.commonName }}</a></li>{% endif %}{% endfor %}
</ul>
<p>All non-US Nonprofits</p>
<h4>Non-US Nonprofits</h4>
<ul id="nonus">
{% assign otherfdn = site.foundations | where_exp: 'fdn', "fdn.nonprofitStatus != 'Nonprofit501c3' and fdn.nonprofitStatus != 'Nonprofit501c6'" %}
{% for fdn in otherfdn %}<li><a href="/foundations/{{ fdn.identifier }}">{{ fdn.commonName }}</a> <span class="label label-blue">{{ fdn.nonprofitStatus }}</span></li>{% endfor %}
Expand All @@ -86,8 +85,8 @@ <h3>Foundations By Nonprofit Types</h3>
{{ mininav }}
<section id="coc">
<h3>Codes of Conduct</h3>
<p>Obviously linked Codes of Conduct, including any noted inspirations for the source thereof.</p>
<p>Including <emphasis>obviously</emphasis> linked Codes of Conduct, with any noted inspirations for the source thereof.</p>
<ul id="coclist">
{% for fdn in site.foundations %}{% if fdn.conducturl %}<li>{{ fdn.commonName }} <a href="{{ fdn.conducturl }}">{{ fdn.conducturl }}</a>{% if fdn.conductSource %}, <em>inspiration:</em> {{ fdn.conductSource }}{% endif %}{% if fdn.conductEvents %}, <a href="{{ fdn.conductEvents }}">Event-specific CoC</a>{% endif %}</li>{% endif %}{% endfor %}
{% for fdn in site.foundations %}{% if fdn.conducturl %}<li>{{ fdn.commonName }} <a href="{{ fdn.conducturl }}">{{ fdn.conducturl }}</a>{% if fdn.conductSource %}, <em>inspiration:</em> {{ fdn.conductSource }}{% if fdn.conductSource contains 'Covenant' %} <span class="label label-purple">Covenant</span>{% endif %}{% endif %}{% if fdn.conductEvents %}, <a href="{{ fdn.conductEvents }}">Event-specific CoC</a>{% endif %}</li>{% endif %}{% endfor %}
</ul>
</section>
3 changes: 3 additions & 0 deletions _pages/categories.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,6 @@ permalink: /categories
nav_order: 3
parent: Foundations Directory
---

{% include foundation-list-nav.html %}
{{ fdnlistnav }}
5 changes: 3 additions & 2 deletions _pages/listing.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ nav_order: 2
has_children: true
---

A listing of **non-profit** foundations that host FOSS projects or are otherwise significant in the open source ecosystem.
An alphabetical listing of **non-profit** foundations that host FOSS projects or are otherwise significant in the open source ecosystem.

Commercial entities and projects that aren't *independent* legal entities are not included here, as noted in our [data philosophy](data). See our [OpenAPI spec](openapi).
{% include foundation-list-nav.html %}
{{ fdnlistnav }}

0 comments on commit 41f3def

Please sign in to comment.