Skip to content

Commit

Permalink
Run mkdocs build end-to-end as a final test step
Browse files Browse the repository at this point in the history
Signed-off-by: Eric Peterson <ericpeterson@spotify.com>
  • Loading branch information
iamEAP committed Aug 3, 2022
1 parent 0f4973f commit 6451917
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,8 @@ jobs:
- name: Test with unittest
run: |
python -m unittest src/test_core.py
- name: Run mkdocs build end-to-end
run: |
pip list --format=freeze | xargs pip uninstall -y
pip install --editable .
mkdocs build --config-file test-fixtures/mkdocs.yml
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,7 @@ venv.bak/

# mkdocs documentation
/site
/test-fixtures/site

# mypy
.mypy_cache/
Expand Down
3 changes: 3 additions & 0 deletions test-fixtures/docs/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Home

This is a piece of documentation.
10 changes: 10 additions & 0 deletions test-fixtures/mkdocs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
site_name: Fixture Docs
site_description: Used as a simple end-to-end test of the techdocs-core plugin.
repo_url: https://github.com/backstage/mkdocs-techdocs-core
edit_uri: edit/main/test-fixtures/docs

plugins:
- techdocs-core

nav:
- Home: index.md

0 comments on commit 6451917

Please sign in to comment.