Skip to content

Automatically generate Doc list #18

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jan 7, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 24 additions & 5 deletions _wiki/documentation.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,27 @@ The Javadoc APIs

And finally the collection of Javadoc APIs. The link will take you to the generated HTML version of the Javadoc. You can choose from the following versions:

- [Javadoc API for BioJava 5.0.0]({{site.baseurl}}/docs/api5.0.0/index.html)
- [Javadoc API for BioJava 4.2.9]({{site.baseurl}}/docs/api4.2.9/index.html)
- [Javadoc API for BioJava 4.2.1]({{site.baseurl}}/docs/api4.2.1/index.html)
- [Javadoc API for BioJava 4.2.0]({{site.baseurl}}/docs/api4.2.0/index.html)
- [Javadoc API for BioJava legacy 1.9.1]({{site.baseurl}}/docs/api1.9.1/index.html)
{% comment %}
List all biojava versions.

Relies on site.static_files, which lists all static files. Matches /docs/api<version>/*

Note that the split starts with an empty "", so the api is in position 2. Directories are not
enumerated, so we get it from each file and then get a unique list as a second step.

Adds about 40s to the build time.
{% endcomment %}
{%- capture versions -%}
{%- for file in site.static_files-%}
{%- assign splitpath = file.path | split: '/' -%}
{%- if splitpath.size == 4 and splitpath[1] == "docs" and splitpath[2] contains "api" -%}
{{splitpath[2]|replace_first:"api", ""}},
{%- endif -%}
{%- endfor %}
{%- endcapture -%}
{%- assign uniq_versions = versions | split: "," | uniq | sort_natural | reverse-%}
{% for version in uniq_versions %}
{%- if version != "" -%}
* [Javadoc API for BioJava {% if version < "3.0.0" %}legacy {% endif %}{{version}}]({{site.baseurl}}/docs/api{{version}}/index.html)
{% endif -%}
{% endfor %}
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy