Skip to content

Commit

Permalink
Fix small bug in mkdocs (#178)
Browse files Browse the repository at this point in the history
* fix bug

* add make docs-serve

* add make docs-setup
  • Loading branch information
klwetstone authored Oct 20, 2021
1 parent cce6a2f commit 3901746
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
7 changes: 6 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -38,14 +38,19 @@ dist: clean ## builds source and wheel package
python setup.py bdist_wheel
ls -l dist

docs: clean-docs
docs-setup: ## setup docs pages based on README.md and HISTORY.md
sed 's|https://raw.githubusercontent.com/drivendataorg/cloudpathlib/master/docs/docs/logo.svg|logo.svg|g' README.md \
| sed 's|https://cloudpathlib.drivendata.org/stable/||g' \
> docs/docs/index.md
sed 's|https://cloudpathlib.drivendata.org/stable/|../|g' HISTORY.md \
> docs/docs/changelog.md

docs: clean-docs docs-setup ## build the static version of the docs
cd docs && mkdocs build

docs-serve: clean-docs docs-setup ## serve documentation to livereload while you work
cd docs && mkdocs serve

format:
black cloudpathlib tests docs

Expand Down
2 changes: 1 addition & 1 deletion docs/mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ plugins:
group_by_category: true
show_category_heading: true
watch:
- cloudpathlib
- ../cloudpathlib

extra:
version:
Expand Down

0 comments on commit 3901746

Please sign in to comment.