mirror of
https://github.com/McShelby/hugo-theme-relearn.git
synced 2024-11-22 23:37:53 +00:00
docs: rename changelog URL #917
This commit is contained in:
parent
06c45128ec
commit
eee8053cf2
423 changed files with 14 additions and 14 deletions
16
.github/actions/release_milestone/action.yaml
vendored
16
.github/actions/release_milestone/action.yaml
vendored
|
@ -137,23 +137,23 @@ runs:
|
|||
GITHUB_TOKEN: ${{ inputs.github_token }}
|
||||
GREN_GITHUB_TOKEN: ${{ inputs.github_token }}
|
||||
run: |
|
||||
mkdir -p exampleSite/content/basics/history/${{ steps.majorvers.outputs.value }}/${{ steps.minorvers.outputs.value }}
|
||||
echo -e "+++\ndisableToc = false\nhidden = true\ntitle = \"Version ${{ steps.majorvers.outputs.value }}\"\ntype = \"changelog\"\nweight = -${{ steps.majorvers.outputs.value }}\n+++\n\n{{% pages showhidden=\"true\" showdivider=\"true\" %}}" > exampleSite/content/basics/history/${{ steps.majorvers.outputs.value }}/_index.en.md
|
||||
echo -e "+++\ndisableToc = false\nhidden = true\ntitle = \"Version ${{ steps.majorvers.outputs.value }}.${{ steps.minorvers.outputs.value }}\"\ntype = \"changelog\"\nweight = -${{ steps.minorvers.outputs.value }}\n+++\n\n{{% pages showhidden=\"true\" showdivider=\"true\" reverse=\"true\" %}}" > exampleSite/content/basics/history/${{ steps.majorvers.outputs.value }}/${{ steps.minorvers.outputs.value }}/_index.en.md
|
||||
npx github-release-notes@0.17.1 changelog --generate --changelog-filename exampleSite/content/basics/history/${{ steps.majorvers.outputs.value }}/${{ steps.minorvers.outputs.value }}/${{ steps.paddedpatchvers.outputs.value }}.en.md --tags "$MILESTONE"
|
||||
mkdir -p exampleSite/content/basics/changelog/${{ steps.majorvers.outputs.value }}/${{ steps.minorvers.outputs.value }}
|
||||
echo -e "+++\ndisableToc = false\nhidden = true\ntitle = \"Version ${{ steps.majorvers.outputs.value }}\"\ntype = \"changelog\"\nweight = -${{ steps.majorvers.outputs.value }}\n+++\n\n{{% pages showhidden=\"true\" showdivider=\"true\" %}}" > exampleSite/content/basics/changelog/${{ steps.majorvers.outputs.value }}/_index.en.md
|
||||
echo -e "+++\ndisableToc = false\nhidden = true\ntitle = \"Version ${{ steps.majorvers.outputs.value }}.${{ steps.minorvers.outputs.value }}\"\ntype = \"changelog\"\nweight = -${{ steps.minorvers.outputs.value }}\n+++\n\n{{% pages showhidden=\"true\" showdivider=\"true\" reverse=\"true\" %}}" > exampleSite/content/basics/changelog/${{ steps.majorvers.outputs.value }}/${{ steps.minorvers.outputs.value }}/_index.en.md
|
||||
npx github-release-notes@0.17.1 changelog --generate --changelog-filename exampleSite/content/basics/changelog/${{ steps.majorvers.outputs.value }}/${{ steps.minorvers.outputs.value }}/${{ steps.paddedpatchvers.outputs.value }}.en.md --tags "$MILESTONE"
|
||||
|
||||
- name: Generate piratish changelogs
|
||||
shell: bash
|
||||
run: |
|
||||
echo -e "+++\ndisableToc = false\nhidden = true\ntitle = \"Version ${{ steps.majorvers.outputs.value }}\"\ntype = \"changelog\"\nweight = -${{ steps.majorvers.outputs.value }}\n+++\n{{< piratify true >}}" > exampleSite/content/basics/history/${{ steps.majorvers.outputs.value }}/_index.pir.md
|
||||
echo -e "+++\ndisableToc = false\nhidden = true\ntitle = \"Version ${{ steps.majorvers.outputs.value }}.${{ steps.minorvers.outputs.value }}\"\ntype = \"changelog\"\nweight = -${{ steps.minorvers.outputs.value }}\n+++\n{{< piratify true >}}" > exampleSite/content/basics/history/${{ steps.majorvers.outputs.value }}/${{ steps.minorvers.outputs.value }}/_index.pir.md
|
||||
echo -e "+++\n+++\n{{< piratify true >}}" > exampleSite/content/basics/history/${{ steps.majorvers.outputs.value }}/${{ steps.minorvers.outputs.value }}/${{ steps.paddedpatchvers.outputs.value }}.pir.md
|
||||
echo -e "+++\ndisableToc = false\nhidden = true\ntitle = \"Version ${{ steps.majorvers.outputs.value }}\"\ntype = \"changelog\"\nweight = -${{ steps.majorvers.outputs.value }}\n+++\n{{< piratify true >}}" > exampleSite/content/basics/changelog/${{ steps.majorvers.outputs.value }}/_index.pir.md
|
||||
echo -e "+++\ndisableToc = false\nhidden = true\ntitle = \"Version ${{ steps.majorvers.outputs.value }}.${{ steps.minorvers.outputs.value }}\"\ntype = \"changelog\"\nweight = -${{ steps.minorvers.outputs.value }}\n+++\n{{< piratify true >}}" > exampleSite/content/basics/changelog/${{ steps.majorvers.outputs.value }}/${{ steps.minorvers.outputs.value }}/_index.pir.md
|
||||
echo -e "+++\n+++\n{{< piratify true >}}" > exampleSite/content/basics/changelog/${{ steps.majorvers.outputs.value }}/${{ steps.minorvers.outputs.value }}/${{ steps.paddedpatchvers.outputs.value }}.pir.md
|
||||
|
||||
- name: Read changelog
|
||||
id: changelog_docs
|
||||
uses: guibranco/github-file-reader-action-v2@latest
|
||||
with:
|
||||
path: exampleSite/content/basics/history/${{ steps.majorvers.outputs.value }}/${{ steps.minorvers.outputs.value }}/${{ steps.paddedpatchvers.outputs.value }}.en.md
|
||||
path: exampleSite/content/basics/changelog/${{ steps.majorvers.outputs.value }}/${{ steps.minorvers.outputs.value }}/${{ steps.paddedpatchvers.outputs.value }}.en.md
|
||||
|
||||
- name: Write changelog to CHANGELOG.md
|
||||
uses: surahmansada/file-regex-replace@v1
|
||||
|
|
|
@ -63,7 +63,7 @@ For a detailed description of the theme's capabilities visit the [official docum
|
|||
|
||||
## Releasenotes & Changelog
|
||||
|
||||
See the [What's New](https://mcshelby.github.io/hugo-theme-relearn/basics/releasenotes) page for release highlights or the detailed [changelog](https://mcshelby.github.io/hugo-theme-relearn/basics/history) for a complete list of changes.
|
||||
See the [What's New](https://mcshelby.github.io/hugo-theme-relearn/basics/releasenotes) page for release highlights or the detailed [changelog](https://mcshelby.github.io/hugo-theme-relearn/basics/changelog) for a complete list of changes.
|
||||
|
||||
## Contributions
|
||||
|
||||
|
|
|
@ -4,7 +4,7 @@ title = "Hugo Relearn Theme"
|
|||
type = "home"
|
||||
[[cascade]]
|
||||
[cascade._target]
|
||||
path = "/basics/history/*/*/*"
|
||||
path = "/basics/changelog/*/*/*"
|
||||
[cascade.params]
|
||||
[cascade.params._build]
|
||||
render = "never"
|
||||
|
|
|
@ -4,7 +4,7 @@ title = "Cap'n Hugo Relearrrn Theme"
|
|||
type = "home"
|
||||
[[cascade]]
|
||||
[cascade._target]
|
||||
path = "/basics/history/*/*/*"
|
||||
path = "/basics/changelog/*/*/*"
|
||||
[cascade.params]
|
||||
[cascade.params._build]
|
||||
render = "never"
|
||||
|
|
Some files were not shown because too many files have changed in this diff Show more
Loading…
Reference in a new issue