File tree 3 files changed +29
-7
lines changed
3 files changed +29
-7
lines changed Original file line number Diff line number Diff line change 14
14
15
15
plugins :
16
16
- search
17
- # - git-revision-date-localized
17
+ - git-revision-date-localized
18
18
- 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 13
13
# standard lib
14
14
import logging
15
15
import os
16
+ import sys
16
17
import re
17
18
import shutil
18
19
from contextlib import contextmanager
@@ -680,14 +681,16 @@ def test_ignored_commits(tmp_path):
680
681
assert "May 4, 2018" in contents
681
682
682
683
684
+ @pytest .mark .skipif (sys .platform .startswith ("win" ), reason = "monorepo plugin did not work for me on windows (even without this plugin)" )
683
685
def test_monorepo_compat (tmp_path ):
684
686
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 )
686
688
result = build_docs_setup (testproject_path )
689
+ assert result .exit_code == 0 , f"'mkdocs build' command failed with:\n \n { result .stdout } "
687
690
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 )
693
696
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