Skip to content

Commit

Permalink
Merge pull request #234 from SamGuay/master
Browse files Browse the repository at this point in the history
Fix GHA for docs + layouts
  • Loading branch information
arnaudbore authored Jul 13, 2023
2 parents 43023c7 + 2d1ab4e commit a61b83e
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 66 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/publish_doc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -52,12 +52,15 @@ jobs:
git config --global user.email "${{ github.actor }}@users.noreply.github.com"
- name: Build API reference
run: pdocs as_markdown -o docs/dcm2bids dcm2bids
run: pdocs as_markdown -o docs/ dcm2bids --overwrite

- name: Build docs for specific release
if: github.event_name == 'release'
run: mike deploy --push ${{ github.ref_name }} latest
run: |
mike deploy -p ${{ github.ref_name }} latest
- name: Deploy dev version
if: ${{ github.ref == 'refs/heads/master' }}
run: mike deploy --push dev
run: |
VERSION=$(dcm2bids -v | awk '/dcm2bids/ {print $3}')
mike deploy -p $VERSION dev
2 changes: 1 addition & 1 deletion docs_helper/templates/main.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@
<a href="{{ '../' ~ base_url }}">


<strong>Click here to go to latest.</strong>
<strong>Click here to go to latest stable.</strong>
</a>
{% endblock %}
59 changes: 0 additions & 59 deletions docs_helper/templates/partials/footer.html

This file was deleted.

5 changes: 2 additions & 3 deletions mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -74,10 +74,9 @@ theme:
- content.tooltips
- navigation.footer
- navigation.indexes
- navigation.sections
- navigation.tabs
- navigation.tabs.sticky
# - navigation.sections
- navigation.top
- navigation.tracking
- search.highlight
- search.suggest
- toc.follow
Expand Down

0 comments on commit a61b83e

Please sign in to comment.