Skip to content

Commit

Permalink
Try this out
Browse files Browse the repository at this point in the history
  • Loading branch information
cansavvy committed Jan 8, 2025
1 parent d48a63a commit c60db10
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 0 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/pull_request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ jobs:
toggle_style_code: "${{ env.STYLE_CODE }}"
toggle_url_check: "${{ env.URL_CHECKER }}"
toggle_quiz_check: "${{ env.CHECK_QUIZZES }}"
toggle_md_linter: "${{ env.MARKDOWN_LINTER }}"
toggle_render_preview: "${{ env.RENDER_PREVIEW }}"
rendering_docker_image: "${{ env.RENDERING_DOCKER_IMAGE }}"

Expand Down Expand Up @@ -110,6 +111,23 @@ jobs:
git commit -m 'Style *mds' || echo "No changes to commit"
git push origin || echo "No changes to commit"
############################# Check Markdown Formatting ###################################
markdown-linter:
name: Markdown linter
needs: yaml-check
runs-on: ubuntu-latest
if: ${{needs.yaml-check.outputs.toggle_md_linter == 'yes'}}

steps:
- name: Checkout files
uses: actions/checkout@v4
with:
fetch-depth: 0

- uses: DavidAnson/markdownlint-cli2-action@v19
with:
globs: '*md$'

############################# Render Preview ###################################

render-preview:
Expand Down
1 change: 1 addition & 0 deletions _output.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,4 @@ bookdown::gitbook:
<p style="text-align:center; font-size: 12px;"> <a href="https://github.com/rstudio4edu/rstudio4edu-book/"> Style adapted from: rstudio4edu-book </a> <a href ="https://creativecommons.org/licenses/by/2.0/"> (CC-BY 2.0) </a></p>
bookdown::word_document2:
toc: true
always_allow_html: true
2 changes: 2 additions & 0 deletions config_automation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ render-preview: yes
spell-check: yes
# Style any R code
style-code: yes
# Would you like your markdown files to be checked for formatting
markdown-linter: yes
# Test build the docker image if any docker-relevant files have been changed
docker-test: no
# Should URLs be tested periodically?
Expand Down

0 comments on commit c60db10

Please sign in to comment.