Skip to content

Commit

Permalink
Include readme markdown with plugin instead of symlink
Browse files Browse the repository at this point in the history
  • Loading branch information
mcauser committed Jul 28, 2022
1 parent 02fb5cf commit b8b74fb
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout master
uses: actions/checkout@v1
uses: actions/checkout@v2

- name: Deploy awesome list
uses: mhausenblas/mkdocs-deploy-gh-pages@master
Expand Down
6 changes: 1 addition & 5 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,11 @@ install:
pip install mkdocs-minify-plugin
pip install mkdocs-awesome-pages-plugin
pip install mkdocs-material

link:
ln -sf $(BASEDIR)/README.md $(DOCDIR)/index.md
pip install mkdocs-include-markdown-plugin

serve:
$(MAKE) link
mkdocs serve

deploy:
$(MAKE) link
mkdocs gh-deploy --clean

1 change: 0 additions & 1 deletion docs/index.md

This file was deleted.

6 changes: 6 additions & 0 deletions docs/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
hide:
- navigation
---

{% include-markdown "../readme.md" %}
1 change: 1 addition & 0 deletions mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ extra:
provider: google
property: UA-1390021-18
plugins:
- include-markdown
- search
- awesome-pages
- minify:
Expand Down
2 changes: 2 additions & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
mkdocs
mkdocs-minify-plugin
mkdocs-awesome-pages-plugin
mkdocs-material
mkdocs-include-markdown-plugin

0 comments on commit b8b74fb

Please sign in to comment.