-
Notifications
You must be signed in to change notification settings - Fork 66
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
Re-format for hugo docs #5489
base: main
Are you sure you want to change the base?
Re-format for hugo docs #5489
Conversation
… this hugo-docs branch
@@ -13,4 +13,4 @@ jobs: | |||
steps: | |||
- name: Send dispatch event | |||
run: | | |||
curl -XPOST -u "${{ secrets.PAT_USERNAME }}:${{ secrets.PAT_TOKEN }}" -H "Accept: application/vnd.github.v3+json" -H "Content-Type: application/json" https://api.github.com/repos/brimdata/zed-docs-site/dispatches --data '{"event_type":"zed-docs-update"}' | |||
curl -XPOST -u "${{ secrets.PAT_USERNAME }}:${{ secrets.PAT_TOKEN }}" -H "Accept: application/vnd.github.v3+json" -H "Content-Type: application/json" https://api.github.com/repos/brimdata/superdb-website/dispatches --data '{"event_type":"super-docs-update", "client_payload": {"commit_sha": "${{ github.sha }}"}}' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For now I've just got this rigged up to send the commits on this hugo-docs
branch. When we eventually merge this to main
, we can switch over to an approach like the one in notify-downstream-merge.yaml that sends the merge commit SHA.
@@ -3,7 +3,7 @@ name: Notify docs update | |||
on: | |||
push: | |||
branches: | |||
- main | |||
- hugo-docs |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Make sure we change this back to main
when we merge.
Summary of changes.
In the front matter:
• sidebar_position becomes weight.
• sidebar_title becomes title.
• README becomes _index
• h1's have been removed from the markdown and rendered in the template with .Title or .Heading
If you want a different heading that what the title is, you can use the heading: key in the front matter.
Remove the
=>
between code examples since we will have interactive playgrounds for all examples.