Skip to content

Commit

Permalink
Fix some doc navigation issues
Browse files Browse the repository at this point in the history
  • Loading branch information
rvesse committed Nov 27, 2023
1 parent f3cccdb commit 8146ce4
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 9 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -33,3 +33,4 @@ docs/find.xslt
docs/maven-metadata.xml
docs/.bundle/
docs/vendor/
docs/.jekyll-metadata
7 changes: 6 additions & 1 deletion docs/404.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,10 @@

<div class="page">
<h1 class="page-title">404: Page not found</h1>
<p class="lead">Sorry, we've misplaced that URL or it's pointing to something that doesn't exist. <a href="{{ site.baseurl }}">Head back home</a> to try finding it again.</p>
<p class="lead">Sorry, we've misplaced that URL or it's pointing to something that doesn't exist. <a href="{{
site.baseurl }}">Head back home</a> to try finding it again.</p>
<p>
If you were looking for Javadoc the module you've selected may not have existed in the Airline release you have
selected.
</p>
</div>
2 changes: 2 additions & 0 deletions docs/_config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,8 @@ side_nav:
url: "require-only-one.html"
- text: "@MutuallyExclusiveWith"
url: "mutually-exclusive-with.html"
- text: "@RequiredUnlessEnvironment"
url: "required-unless.html"
- text: "Occurrence Restrictions"
kind: Group
items:
Expand Down
18 changes: 11 additions & 7 deletions docs/_includes/javadoc-nav.html
Original file line number Diff line number Diff line change
@@ -1,11 +1,15 @@
<ul>
<li><a href="{{ site.baseurl }}/javadoc/{{ include.version }}/airline/">Core API</a></li>
<li><a href="{{ site.baseurl }}/javadoc/{{ include.version }}/airline-io/">IO API</a></li>
<li><a href="{{ site.baseurl }}/javadoc/{{ include.version }}/airline-help-man/">Man Help</a></li>
<li><a href="{{ site.baseurl }}/javadoc/{{ include.version }}/airline-help-markdown/">Markdown Help</a></li>
<li><a href="{{ site.baseurl }}/javadoc/{{ include.version }}/airline-help-html/">HTML Help</a></li>
<li><a href="{{ site.baseurl }}/javadoc/{{ include.version }}/airline-help-bash/">Bash Help</a></li>
<li><a href="{{ site.baseurl }}/javadoc/{{ include.version }}/airline-help-external/">External Help</a></li>
<li><a href="{{ site.baseurl }}/javadoc/{{ include.version }}/airline-jpms-resources/">JPMS Resource Locator</a></li>
<li><a href="{{ site.baseurl }}/javadoc/{{ include.version }}/airline-prompts/">Prompts API</a></li>
</ul>
<li><a href="#">Help Modules</a>
<ul>
<li><a href="{{ site.baseurl }}/javadoc/{{ include.version }}/airline-help-man/">Man Help</a></li>
<li><a href="{{ site.baseurl }}/javadoc/{{ include.version }}/airline-help-markdown/">Markdown Help</a></li>
<li><a href="{{ site.baseurl }}/javadoc/{{ include.version }}/airline-help-html/">HTML Help</a></li>
<li><a href="{{ site.baseurl }}/javadoc/{{ include.version }}/airline-help-bash/">Bash Help</a></li>
<li><a href="{{ site.baseurl }}/javadoc/{{ include.version }}/airline-help-external/">External Help</a></li>
</ul>
</li>
<li><a href="{{ site.baseurl }}/javadoc/{{ include.version }}/airline-jpms-resources/">JPMS Resource Locator</a></li>
</ul>
2 changes: 1 addition & 1 deletion docs/_includes/nav-fragment.html
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
</li>
{% elsif navitem.kind == "Javadoc" %}
<li>
<a href="#">{{ javadoc }}</a>
<a href="#">{{ navitem.version }}</a>
{% include javadoc-nav.html version=navitem.version %}
</li>
{% else %}
Expand Down

0 comments on commit 8146ce4

Please sign in to comment.