forked from extern/httpie-cli
08751d3672
* Add install/update instructions database * Update the database * Revert README changes They will be overwritten later. * Revert * Tweak * Tweaks * Upgrade database * Complete commands Still not sure about Spack upgrades. * Sort * Doc generation script draft * Remove OS names from tool names * Fix Linuxbrew name * `wheel` already installs `setuptools` * Gen docs * Update * Tweak * Add a GitHub workflow to check for outdated installation instructions * Fix return value * Test * Delete test * Rename the script * Add `make doc-install-inst` * Add missing dev requirement * The first tool is the primary we want to display Then they are simply sorted by `tool.title`. * Sort OSes by name * Refactoring, jinja template, etc. * Add tool title uniqueness `assert`, fix platform list extra `\n` * Rebuild docs * Update generate.py * Update README.md * Update methods.yml * Update distros derived, more assertions * Tweaks * Add workflow to auto-update the docs * Do not hide the command * Tweaks Co-authored-by: Jakub Roztocil <jakub@roztocil.co>
38 lines
883 B
Django/Jinja
38 lines
883 B
Django/Jinja
<!--
|
|
THE INSTALLATION SECTION IS GENERATED
|
|
|
|
Do not edit here, but in docs/installation/.
|
|
|
|
-->
|
|
{% for platform, tools in structure %}
|
|
- [{{ platform }}](#{{ platform.lower() }}){% endfor %} {# <= keep `endfor` here to prevent unwanted `\n` #}
|
|
|
|
{% for platform, tools in structure %}
|
|
|
|
### {{ platform }}
|
|
|
|
{% for tool in tools %}
|
|
#### {{ tool.title }}
|
|
|
|
{% if tool.note %}
|
|
{{ tool.note }}
|
|
{% endif %}
|
|
|
|
{% if tool.links.setup %}
|
|
To install [{{ tool.name }}]({{ tool.links.homepage }}) follow [installation instructions]({{ tool.links.setup }}).
|
|
{% endif %}
|
|
|
|
```bash
|
|
# Install
|
|
$ {{ tool.commands.install|join('\n$ ') }}
|
|
```
|
|
|
|
```bash
|
|
# Upgrade
|
|
$ {{ tool.commands.upgrade|join('\n$ ') }}
|
|
```
|
|
{% endfor %}
|
|
|
|
{% endfor %}
|
|
<!-- /GENERATED SECTION -->
|