-
Notifications
You must be signed in to change notification settings - Fork 77
ENT-8966: Replaced Jekyll with Hugo documentation builder #3448
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
Changes from all commits
Commits
Show all changes
34 commits
Select commit
Hold shift + click to select a range
bb49d7c
Added script to process references in the markdown files
aleksandrychev 25842d9
Added pre-processor script to fix issues when Hugo uses CFEngine must…
aleksandrychev dacf49a
Removed printable processor we do not use
aleksandrychev 74aef1f
Adjusted metadata alias to follow directory structure
aleksandrychev 01cccee
Removed category metadata
aleksandrychev b4fb72e
Moved section files into directories and renamed to _index.markdown
aleksandrychev 6b4ba4f
Moved documentation conent into conent directory
aleksandrychev a4406ee
Added preprocessor script to fix image paths
aleksandrychev bf806e6
Adjusted the links from html to path-based on the Home page
aleksandrychev bbacb01
Replaced Jekyll comments with HTML comments supported by Hugo
aleksandrychev 56c6833
Added search and versions pages
aleksandrychev ab9ef4e
Removed unsuported {%raw%}
aleksandrychev 5e9ad3a
Adjusted pre-process and run scirpts
aleksandrychev 1bc505c
Added redirect rules made to handle new documenation structure
aleksandrychev 3f7907b
Removed unnessesary files from generator
aleksandrychev 559f947
Removed Jekyl dependencies
aleksandrychev 00ae217
Removed webpack and dependencies
aleksandrychev 6900a47
Show versions list on the Versions page
aleksandrychev 24b4403
Moved hugo install bits into shared scripts
aleksandrychev 4dae4d3
Added bump hugo version action
aleksandrychev 9eca443
Added hugo config, layouts and static files
aleksandrychev 3ee7e93
Added branch placeholder to the Hugo config and script that replaces it
aleksandrychev b88632e
Removed unsupported published frontmatter
aleksandrychev acff1b2
Get rid of try/except blocks from cfdoc preprocess
aleksandrychev a9dbccb
Get rid of generator/pages directory as we use hugo/content
aleksandrychev 2086230
Updated README.md
aleksandrychev 8fafe9e
Removed codeblock resolver pre-process script
aleksandrychev f6cebd5
Removed included markdowns to prevent them from being rendered
aleksandrychev e6c2117
Fixed whitespaces
aleksandrychev 6228897
Removed versions and search old markdowns
aleksandrychev b79a907
Copy redirects.conf to _site
aleksandrychev 2560074
Copied search index into proper location
aleksandrychev 9fe5cf5
Added searchUrlPrefix config
aleksandrychev 9bfac3c
Fixed versions links
aleksandrychev File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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,42 @@ | ||
| name: Hugo version update | ||
|
|
||
| on: | ||
| schedule: | ||
| - cron: "0 0 * * 0" #perform every sunday's night | ||
| workflow_dispatch: | ||
|
|
||
| jobs: | ||
| update_hugo_version: | ||
| if: github.repository_owner == 'cfengine' || github.repository_owner == 'mendersoftware' || github.repository_owner == 'NorthernTechHQ' | ||
| runs-on: ubuntu-latest | ||
| permissions: | ||
| contents: write | ||
| pull-requests: write | ||
| steps: | ||
| - uses: actions/checkout@v4 | ||
| - name: Fetch latest Hugo release info | ||
| id: fetch_hugo_version | ||
| run: | | ||
| release_info=$(curl -s https://api.github.com/repos/gohugoio/hugo/releases/latest) | ||
| version=$(echo "$release_info" | jq -r '.tag_name' | sed 's/v//') | ||
| # download checksums and find checksum of hugo_${version}_Linux-64bit.tar.gz | ||
| checksum=$( curl -sSL https://github.com/gohugoio/hugo/releases/download/v${version}/hugo_${version}_checksums.txt | grep hugo_${version}_Linux-64bit.tar.gz | grep -oE "[a-z0-9]{64}") | ||
| echo "version=$version" >> $GITHUB_OUTPUT | ||
| echo "checksum=$checksum" >> $GITHUB_OUTPUT | ||
|
|
||
| - name: Update install_hugo.sh | ||
| run: | | ||
| sed -i "s|https://github.com/gohugoio/hugo/releases/download/v.*_Linux-64bit.tar.gz|https://github.com/gohugoio/hugo/releases/download/v${{ steps.fetch_hugo_version.outputs.version }}/hugo_${{ steps.fetch_hugo_version.outputs.version }}_Linux-64bit.tar.gz|" generator/build/install_hugo.sh | ||
| sed -i "s/.*sha256sum.*/RUN echo \"${{ steps.fetch_hugo_version.outputs.checksum }} hugo.tar.gz\" | sha256sum -c/" generator/build/install_hugo.sh | ||
| - name: Create Pull Request | ||
| uses: cfengine/create-pull-request@v7 | ||
| with: | ||
| commit-message: Upgraded Hugo version to ${{ steps.fetch_hugo_version.outputs.version }} | ||
| title: Upgraded Hugo version to ${{ steps.fetch_hugo_version.outputs.version }} | ||
| body: | | ||
| This PR updates the version of Hugo used in the generator/build/install_hugo.sh to ${{ steps.fetch_hugo_version.outputs.version }}. | ||
| reviewers: | | ||
| aleksandrychev | ||
|
|
||
| branch: hugo-version-update-${{ steps.fetch_hugo_version.outputs.version }} | ||
| sign-commits: true | ||
This file contains hidden or 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 contains hidden or 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 |
|---|---|---|
| @@ -1,7 +1,6 @@ | ||
| --- | ||
| layout: printable | ||
| title: Markdown cheatsheet | ||
| published: true | ||
| sorting: 1 | ||
| alias: markdown-cheatsheet.html | ||
| --- | ||
|
|
||
|
aleksandrychev marked this conversation as resolved.
|
This file contains hidden or 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 contains hidden or 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 |
|---|---|---|
| @@ -1,7 +1,6 @@ | ||
| --- | ||
| layout: default | ||
| title: API | ||
| published: true | ||
| sorting: 50 | ||
| --- | ||
|
|
||
|
|
||
File renamed without changes
1 change: 0 additions & 1 deletion
1
api/enterprise-api-examples.markdown → ...i/enterprise-api-examples/_index.markdown
This file contains hidden or 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 |
|---|---|---|
| @@ -1,7 +1,6 @@ | ||
| --- | ||
| layout: default | ||
| title: Enterprise API examples | ||
| published: true | ||
| sorting: 6 | ||
| --- | ||
|
|
||
|
|
||
1 change: 0 additions & 1 deletion
1
...amples/browsing-host-information.markdown → ...amples/browsing-host-information.markdown
This file contains hidden or 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 |
|---|---|---|
| @@ -1,7 +1,6 @@ | ||
| --- | ||
| layout: default | ||
| title: Browsing host information | ||
| published: true | ||
| sorting: 50 | ||
| --- | ||
|
|
||
|
|
||
1 change: 0 additions & 1 deletion
1
...e-api-examples/changes-api-usage.markdown → ...e-api-examples/changes-api-usage.markdown
This file contains hidden or 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 |
|---|---|---|
| @@ -1,7 +1,6 @@ | ||
| --- | ||
| layout: default | ||
| title: Tracking changes | ||
| published: true | ||
| sorting: 50 | ||
| --- | ||
|
|
||
|
|
||
1 change: 0 additions & 1 deletion
1
...ise-api-examples/checking-status.markdown → ...ise-api-examples/checking-status.markdown
This file contains hidden or 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 |
|---|---|---|
| @@ -1,7 +1,6 @@ | ||
| --- | ||
| layout: default | ||
| title: Checking status | ||
| published: true | ||
| sorting: 20 | ||
| --- | ||
|
|
||
|
|
||
1 change: 0 additions & 1 deletion
1
...e-api-examples/managing-settings.markdown → ...e-api-examples/managing-settings.markdown
This file contains hidden or 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 |
|---|---|---|
| @@ -1,7 +1,6 @@ | ||
| --- | ||
| layout: default | ||
| title: Managing settings | ||
| published: true | ||
| sorting: 30 | ||
| --- | ||
|
|
||
|
|
||
1 change: 0 additions & 1 deletion
1
...xamples/managing-users-and-roles.markdown → ...xamples/managing-users-and-roles.markdown
This file contains hidden or 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 |
|---|---|---|
| @@ -1,7 +1,6 @@ | ||
| --- | ||
| layout: default | ||
| title: Managing users and roles | ||
| published: true | ||
| sorting: 40 | ||
| --- | ||
|
|
||
|
|
||
1 change: 0 additions & 1 deletion
1
...erprise-api-examples/sql-queries.markdown → ...erprise-api-examples/sql-queries.markdown
This file contains hidden or 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
1 change: 0 additions & 1 deletion
1
api/enterprise-api-ref.markdown → ...nt/api/enterprise-api-ref/_index.markdown
This file contains hidden or 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 |
|---|---|---|
| @@ -1,7 +1,6 @@ | ||
| --- | ||
| layout: default | ||
| title: Enterprise API reference | ||
| published: true | ||
| sorting: 70 | ||
| --- | ||
|
|
||
|
|
||
1 change: 0 additions & 1 deletion
1
api/enterprise-api-ref/actions-api.markdown → ...i/enterprise-api-ref/actions-api.markdown
This file contains hidden or 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
1 change: 0 additions & 1 deletion
1
...nterprise-api-ref/audit-logs-api.markdown → ...nterprise-api-ref/audit-logs-api.markdown
This file contains hidden or 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
1 change: 0 additions & 1 deletion
1
api/enterprise-api-ref/build-api.markdown → ...api/enterprise-api-ref/build-api.markdown
This file contains hidden or 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
1 change: 0 additions & 1 deletion
1
api/enterprise-api-ref/changes.markdown → ...t/api/enterprise-api-ref/changes.markdown
This file contains hidden or 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
1 change: 0 additions & 1 deletion
1
api/enterprise-api-ref/cmdb-api.markdown → .../api/enterprise-api-ref/cmdb-api.markdown
This file contains hidden or 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
1 change: 0 additions & 1 deletion
1
...rprise-api-ref/export-import-api.markdown → ...rprise-api-ref/export-import-api.markdown
This file contains hidden or 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
1 change: 0 additions & 1 deletion
1
...ort-import-compliance-report-api.markdown → ...ort-import-compliance-report-api.markdown
This file contains hidden or 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
1 change: 0 additions & 1 deletion
1
...-api-ref/federated-reporting-api.markdown → ...-api-ref/federated-reporting-api.markdown
This file contains hidden or 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
1 change: 0 additions & 1 deletion
1
api/enterprise-api-ref/file-changes.markdown → .../enterprise-api-ref/file-changes.markdown
This file contains hidden or 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 |
|---|---|---|
| @@ -1,7 +1,6 @@ | ||
| --- | ||
| layout: default | ||
| title: File changes API | ||
| published: true | ||
| --- | ||
|
|
||
|
|
||
|
|
||
1 change: 0 additions & 1 deletion
1
...erprise-api-ref/first-time-setup.markdown → ...erprise-api-ref/first-time-setup.markdown
This file contains hidden or 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
1 change: 0 additions & 1 deletion
1
...rprise-api-ref/health-diagnostic.markdown → ...rprise-api-ref/health-diagnostic.markdown
This file contains hidden or 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
1 change: 0 additions & 1 deletion
1
api/enterprise-api-ref/host.markdown → content/api/enterprise-api-ref/host.markdown
This file contains hidden or 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
1 change: 0 additions & 1 deletion
1
api/enterprise-api-ref/inventory.markdown → ...api/enterprise-api-ref/inventory.markdown
This file contains hidden or 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
1 change: 0 additions & 1 deletion
1
api/enterprise-api-ref/ldap-api.markdown → .../api/enterprise-api-ref/ldap-api.markdown
This file contains hidden or 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
1 change: 0 additions & 1 deletion
1
...terprise-api-ref/personal-groups.markdown → ...terprise-api-ref/personal-groups.markdown
This file contains hidden or 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
1 change: 0 additions & 1 deletion
1
api/enterprise-api-ref/query.markdown → ...ent/api/enterprise-api-ref/query.markdown
This file contains hidden or 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
1 change: 0 additions & 1 deletion
1
...nterprise-api-ref/reset-password.markdown → ...nterprise-api-ref/reset-password.markdown
This file contains hidden or 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 |
|---|---|---|
| @@ -1,7 +1,6 @@ | ||
| --- | ||
| layout: default | ||
| title: Reset password API | ||
| published: true | ||
| --- | ||
|
|
||
| ## Request reset password link and token | ||
|
|
||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.