File tree Expand file tree Collapse file tree 5 files changed +57
-26
lines changed Expand file tree Collapse file tree 5 files changed +57
-26
lines changed Original file line number Diff line number Diff line change 22
22
with :
23
23
auto-update-conda : true
24
24
miniforge-variant : Mambaforge
25
- environment-file : mkdocs/ environment.yaml
25
+ environment-file : environment-dev.yml
26
26
use-mamba : true
27
27
28
28
- name : Build docs
Original file line number Diff line number Diff line change @@ -22,7 +22,8 @@ dependencies:
22
22
- make
23
23
- mkdocs
24
24
- mkdocs-material
25
- - mkdocstrings-python
25
+ - mkdocstrings=0.18.1
26
+ - mkdocstrings-python-legacy=0.2.2
26
27
- missingno
27
28
- multipledispatch
28
29
- mypy
Original file line number Diff line number Diff line change @@ -46,7 +46,7 @@ plugins:
46
46
show_source : true
47
47
# https://github.com/mkdocstrings/mkdocstrings/issues/278#issuecomment-831411193
48
48
selection :
49
- docstring_style : sphinx
49
+ docstring_style : restructured-text
50
50
# custom_templates: templates
51
51
watch :
52
52
- janitor/
Original file line number Diff line number Diff line change 1
- name : pyjanitor-doc
2
- channels :
3
- - conda-forge
4
- dependencies :
5
- - python
6
- # required
7
- - pandas
8
- - pandas-flavor
9
- - multipledispatch
10
- - scipy
11
- # optional
12
- - biopython
13
- - natsort
14
- - pyspark>=3.2.0
15
- - rdkit
16
- - tqdm
17
- - unyt
18
- - xarray
19
- - numba
20
- # doc
21
- - mkdocs
22
- - mkdocs-material
23
- - mkdocstrings-python
1
+ # 14 August 2022: Temporarily commenting out.
2
+ # See: https://github.com/pyjanitor-devs/pyjanitor/pull/1147#issuecomment-1214508157
3
+ # for more context on why.
4
+ # name: pyjanitor-doc
5
+ # channels:
6
+ # - conda-forge
7
+ # dependencies:
8
+ # - python
9
+ # # required
10
+ # - pandas
11
+ # - pandas-flavor
12
+ # - multipledispatch
13
+ # - scipy
14
+ # # optional
15
+ # - biopython
16
+ # - natsort
17
+ # - pyspark>=3.2.0
18
+ # - rdkit
19
+ # - tqdm
20
+ # - unyt
21
+ # - xarray
22
+ # - numba
23
+ # # doc
24
+ # - mkdocs
25
+ # - mkdocs-material
26
+ # # To fix #1146
27
+ # # - mkdocstrings-python
28
+ # - mkdocstrings=0.18.1
29
+ # - mkdocstrings-python-legacy=0.2.2
Original file line number Diff line number Diff line change
1
+ """Tests for documentation build."""
2
+
3
+ import os
4
+
5
+
6
+ def test_docs_general_functions_present ():
7
+ """Test that all docs pages build correctly.
8
+
9
+ TODO: There has to be a better way to automatically check that
10
+ all of the functions are present in the docs.
11
+ This is an awesome thing that we could use help with in the future.
12
+ """
13
+ # Build docs using mkdocs
14
+ os .system ("mkdocs build --clean" )
15
+
16
+ # We want to check that the following keywords are all present.
17
+ # I put in a subsample of general functions.
18
+ # This can be made much more robust.
19
+ rendered_correctly = False
20
+ with open ("./site/api/functions/index.html" , "r+" ) as f :
21
+ for line in f .readlines ():
22
+ if "add_columns" in line or "update_where" in line :
23
+ rendered_correctly = True
24
+ assert rendered_correctly
You can’t perform that action at this time.
0 commit comments