-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'migrate-manual-pages-to-hugo'
With this topic branch, there is now a script that pre-renders Git's manual pages as HTML and stores them in `content/`, ready to be committed. This way, no Rails App database is required to hold this content. Signed-off-by: Johannes Schindelin <[email protected]>
- Loading branch information
Showing
11 changed files
with
371 additions
and
112 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,3 +6,4 @@ gem "octokit" | |
gem "rss" | ||
gem "asciidoctor", "~> 2.0.0" | ||
gem "nokogiri" | ||
gem "diffy" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
{% assign versions = site.data.docs.pages[page.docname] %} | ||
<a class="dropdown-trigger" id="reference-versions-trigger" data-panel-id="previous-versions-dropdown" href="#"> | ||
{% if page['version'] and page['version'] != versions['latest-changes'] %} | ||
Version {{ page['version'] }} | ||
{% else %} | ||
Latest version | ||
{% endif %} ▾ </a> | ||
<span class="light d-flex">{{ page.docname }} last updated in {{ versions['latest-changes'] }}</span> | ||
<div class='dropdown-panel left' id='previous-versions-dropdown'> | ||
<header>Changes in the <strong>{{ page.docname }}</strong> manual</header> | ||
<ol class='reference-previous-versions'> | ||
{% for v in versions['page-versions'] %} | ||
{% if v.added %} | ||
<li> | ||
<a href="{{ "/docs/" | append: page.docname | append: "/" | append: v.name | relative_url }}"><span class="version">{{ v.name }}</span> | ||
<span class="diff"> | ||
{% assign range = (1..v.added) %} | ||
{% for i in range %} | ||
<img src="{{ "/images/icons/green-dot.png" | relative_url }}" /> | ||
{% endfor %} | ||
{% assign range = (1..v.removed) %} | ||
{% for i in range %} | ||
<img src="{{ "/images/icons/red-dot.png" | relative_url }}" /> | ||
{% endfor %} | ||
{% assign padding = 8 | minus: v.added | minus: v.removed %} | ||
{% assign range = (1..padding) %} | ||
{% for i in range %} | ||
<img src="{{ "/images/icons/grey-dot.png" | relative_url }}" /> | ||
{% endfor %} | ||
</span> | ||
<em class="date">{{ site.data.docs.versions[v.name].date }}</em> | ||
</a> | ||
</li> | ||
{% else %} | ||
<li class="no-change"><span>{{ v.name }} no changes</span></li> | ||
{% endif %} | ||
{% endfor %} | ||
<li> </li> | ||
<!-- <li><a class="more" href="#">See more previous releases →</a></li> --> | ||
</ol> | ||
<footer> | ||
<p>Check your version of git by running</p> | ||
<code class="command">git --version</code> | ||
</footer> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.