Skip to content

Commit

Permalink
Merge pull request #26 from tlambert03/fix-docs
Browse files Browse the repository at this point in the history
docs: pin docs reqs and fix build
  • Loading branch information
tlambert03 authored Mar 3, 2024
2 parents ece8f87 + d976718 commit bc5a9c1
Show file tree
Hide file tree
Showing 6 changed files with 26 additions and 13 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/deploy-pages.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
name: Deploy to GitHub Pages
name: Build Docs

on:
push:
branches: [main]
pull_request:
workflow_dispatch:

# Allow this job to clone the repo and create a page deployment
Expand Down Expand Up @@ -45,6 +46,7 @@ jobs:
path: "site/"

deploy:
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
needs: build
runs-on: ubuntu-latest
environment:
Expand Down
9 changes: 8 additions & 1 deletion docs/.overrides/partials/content_next.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,11 @@
<!-- Link to previous and/or next page -->
<!-- Link to previous and/or next page
This code is borrowed from footer.html, and is enabled by adding
"navigation.content_next" to the features list in mkdocs.yml.
It puts the next and previous page links at the bottom of the content
instead of the bottom of the page.
-->
{% if "navigation.content_next" in features %}
{% if page.previous_page or page.next_page %}
{% if page.meta and page.meta.hide %}
Expand Down
6 changes: 5 additions & 1 deletion docs/.overrides/partials/nav-item.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
<!-- Wrap everything with a macro to reduce file roundtrips (see #2213) -->
<!--
This partial is modified to render icons in navigation,
but it is no longer necessary after mkdocs-material mkdocs-material 9.2
since that version includes the feature by default.
-->
{% macro render(nav_item, path, level) %}
<!-- Determine class according to state -->
{% set class = "md-nav__item" %}
Expand Down
6 changes: 3 additions & 3 deletions docs/demo.md
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ Run the command: `pip install my_package`

## Task Lists

* [x] @mentions, #refs, [links](index), **formatting**, and <del>tags</del> supported
* [x] @mentions, #refs, [links](index.md), **formatting**, and <del>tags</del> supported
* [x] list syntax required (any unordered or ordered list supported)
* [x] this is a complete item
* [ ] this is an incomplete item
Expand Down Expand Up @@ -234,8 +234,8 @@ for customizing the icon

## Buttons

[Subscribe to our newsletter](index){ .md-button .md-button--primary }
[Subscribe to our newsletter](index.md){ .md-button .md-button--primary }

with icons

[Send :fontawesome-solid-paper-plane:](index){ .md-button }
[Send :fontawesome-solid-paper-plane:](index.md){ .md-button }
2 changes: 1 addition & 1 deletion mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ nav:
- Pre-commit: guides/pre-commit.md
- Dependency Management: guides/dependencies.md
- Glossary: glossary.md
- "[md demo]": demo.md
# - "[md demo]": demo.md

theme:
name: material
Expand Down
12 changes: 6 additions & 6 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
mkdocs
mkdocs-material
mkdocs-spellcheck[all]
mkdocs-git-revision-date-localized-plugin
mkdocs-git-committers-plugin
mkdocs-minify-plugin
mkdocs-material==9.1.18
mkdocs-material-extensions==1.2
mkdocs-spellcheck[all]==1.0.2
mkdocs-git-revision-date-localized-plugin==1.2.4
mkdocs-git-committers-plugin==0.2.3
mkdocs-minify-plugin==0.8.0

0 comments on commit bc5a9c1

Please sign in to comment.