-
Notifications
You must be signed in to change notification settings - Fork 8
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
Add markdownlint, test_converting_readme, and build_docs workflows #41
Conversation
spetrosi
commented
Aug 3, 2023
•
edited
Loading
edited
- markdownlint runs against README.md to avoid any issues with converting it to HTML
- test_converting_readme converts README.md > HTML and uploads this test artifact to ensure that conversion works fine
- build_docs converts README.md > HTML and pushes the result to the docs branch to publish dosc to GitHub pages site.
6bf9caa
to
af7c73e
Compare
- markdownlint runs against README.md to avoid any issues with converting it to HTML - test_html_build converts README.md > HTML and uploads this test artifact to ensure that conversion works fine - build_docs converts README.md > HTML and pushes the result to the docs branch to publish dosc to GitHub pages site.
af7c73e
to
a53d55f
Compare
I was running it in linux-system-roles/mssql#224 and ansible-test didn't like the pandoc template. In RPM spec we remove dot files prior to converting to the collection format, so I think it's a good idea to remove dot files in ansible-test workflow too rather than ignoring the dotted .pandoc_template.html5. |
|
||
- name: Copy latest README.html to docs/index.html for GitHub pages | ||
if: env.RELEASE_VERSION == 'latest' | ||
run: cp ${{ env.RELEASE_VERSION }}/README.html docs/index.html |
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.
I still store the latest README.md into docs/index.html in the docs branch. index.html is supposed to be the home web page, which in our case is README.md.
This reverts commit 398a1f8.
I merged linux-system-roles/mssql#224 that introduced this. After merging, the build_docs workflow converted to README.html and put it into docs directory on docs branch. Then I enabled GitHub pages, they published the content to the web, and I added a link to the repository description. |
do you need to make any more changes based on review comments from the role PRs? |
No more changes so far, but I am not done with all roles yet. I am fixing README.md in-place in each PR. |