File tree Expand file tree Collapse file tree 3 files changed +29
-7
lines changed
Expand file tree Collapse file tree 3 files changed +29
-7
lines changed Original file line number Diff line number Diff line change 1414
1515plugins :
1616 - search
17- # - git-revision-date-localized
17+ - git-revision-date-localized
1818 - monorepo
Original file line number Diff line number Diff line change 1+ site_name : Cats API
2+
3+ nav :
4+ - Intro : ' index.md'
5+ - Authentication : ' authentication.md'
6+ - Components : ' *include ./components/*/mkdocs.yml'
7+ - API :
8+ - v1 : ' !include ./v1/mkdocs.yml'
9+ - v2 : ' !include ./v2/mkdocs.yml'
10+ - v3 : ' !include ./v3/mkdocs.yml'
11+
12+ theme :
13+ name : material
14+
15+ plugins :
16+ - search
17+ # Note; here monorepo is defined after git-revision-date-localized
18+ - monorepo
19+ - git-revision-date-localized
Original file line number Diff line number Diff line change 1313# standard lib
1414import logging
1515import os
16+ import sys
1617import re
1718import shutil
1819from contextlib import contextmanager
@@ -680,14 +681,16 @@ def test_ignored_commits(tmp_path):
680681 assert "May 4, 2018" in contents
681682
682683
684+ @pytest .mark .skipif (sys .platform .startswith ("win" ), reason = "monorepo plugin did not work for me on windows (even without this plugin)" )
683685def test_monorepo_compat (tmp_path ):
684686 testproject_path = setup_clean_mkdocs_folder ("tests/fixtures/monorepo/mkdocs.yml" , tmp_path )
685- repo = setup_commit_history (testproject_path )
687+ setup_commit_history (testproject_path )
686688 result = build_docs_setup (testproject_path )
689+ assert result .exit_code == 0 , f"'mkdocs build' command failed with:\n \n { result .stdout } "
687690
688- # author = "Test Person <[email protected] >" 689- # with working_directory(testproject_path ):
690- # repo.git.add("." )
691- # repo.git.commit(message="add all", author=author, date="1500854705" )
692-
691+ @ pytest . mark . skipif ( sys . platform . startswith ( "win" ), reason = "monorepo plugin did not work for me on windows (even without this plugin)" )
692+ def test_monorepo_compat_reverse_order ( tmp_path ):
693+ testproject_path = setup_clean_mkdocs_folder ( "tests/fixtures/monorepo/mkdocs_reverse_order.yml" , tmp_path )
694+ setup_commit_history ( testproject_path )
695+ result = build_docs_setup ( testproject_path )
693696 assert result .exit_code == 0 , f"'mkdocs build' command failed with:\n \n { result .stdout } "
You can’t perform that action at this time.
0 commit comments