Skip to content

Commit

Permalink
website: Make latest release (1.7) be default manual
Browse files Browse the repository at this point in the history
Move deveopment manual.yml to dev/manual.yml
Symlink manual.yml to v1.7/manual.yml
Refactor to share history header with links to other manual versions.

Related to jqlang#3078 jqlang#3127
  • Loading branch information
wader committed May 27, 2024
1 parent 7cd23f1 commit 7e15747
Show file tree
Hide file tree
Showing 9 changed files with 3,812 additions and 3,834 deletions.
3,800 changes: 3,800 additions & 0 deletions docs/content/manual/dev/manual.yml

Large diffs are not rendered by default.

3,805 changes: 0 additions & 3,805 deletions docs/content/manual/manual.yml

This file was deleted.

1 change: 1 addition & 0 deletions docs/content/manual/manual.yml
5 changes: 0 additions & 5 deletions docs/content/manual/v1.3/manual.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,6 @@
---
headline: jq 1.3 Manual

history: |
*The manual for the development version of jq can be found
[here](../).*
body: |
A jq program is a "filter": it takes an input, and produces an
Expand Down
5 changes: 0 additions & 5 deletions docs/content/manual/v1.4/manual.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,6 @@
---
headline: jq 1.4 Manual

history: |
*The manual for the development version of jq can be found
[here](../).*
body: |
A jq program is a "filter": it takes an input, and produces an
Expand Down
5 changes: 0 additions & 5 deletions docs/content/manual/v1.5/manual.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,6 @@
---
headline: jq 1.5 Manual

history: |
*The manual for the development version of jq can be found
[here](../).*
body: |
A jq program is a "filter": it takes an input, and produces an
Expand Down
5 changes: 0 additions & 5 deletions docs/content/manual/v1.6/manual.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,6 @@
---
headline: jq 1.6 Manual

history: |
*The manual for the development version of jq can be found
[here](../).*
body: |
A jq program is a "filter": it takes an input, and produces an
Expand Down
5 changes: 0 additions & 5 deletions docs/content/manual/v1.7/manual.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,6 @@
---
headline: jq 1.7 Manual

history: |
*The manual for the development version of jq can be found
[here](../).*
body: |
A jq program is a "filter": it takes an input, and produces an
Expand Down
3 changes: 0 additions & 3 deletions docs/manual_schema.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
type: object
required:
- headline
- history
- body
- manpage_intro
- manpage_epilogue
Expand All @@ -10,8 +9,6 @@ additionalProperties: false
properties:
headline:
type: string
history:
type: string
body:
type: string
manpage_intro:
Expand Down
12 changes: 11 additions & 1 deletion docs/templates/manual.html.j2
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,17 @@
{%- endmacro %}
<main id="main" class="col-md-9" data-bs-spy="scroll" data-bs-target="#contents" data-bs-threshold="0,1" data-bs-root-margin="-30% 0% -70%">
<h1>{{ headline }}</h1>
{{ history | markdownify }}
<p>
<em>
For other versions, see
<a href="/jq/manual/v1.7/">1.7</a>,
<a href="/jq/manual/v1.6/">1.6</a>,
<a href="/jq/manual/v1.5/">1.5</a>,
<a href="/jq/manual/v1.4/">1.4</a>,
<a href="/jq/manual/v1.3/">1.3</a> or
<a href="/jq/manual/dev/">development version</a>.
</em>
</p>
{{ body | markdownify }}
{%- for section in sections %}
<section id="{{ section.title | section_id }}">{{ check_section_id(section.title | section_id) }}
Expand Down

0 comments on commit 7e15747

Please sign in to comment.