Skip to content

Commit a2e3af8

Browse files
committed
reviews build docs
1 parent 668611b commit a2e3af8

File tree

3 files changed

+30
-9
lines changed

3 files changed

+30
-9
lines changed

.github/workflows/docs.yml

+7-2
Original file line numberDiff line numberDiff line change
@@ -23,13 +23,19 @@ jobs:
2323
pip install .
2424
pip freeze
2525
sudo apt-get install pandoc
26+
- name: Debug - List contents of docs directory
27+
run: ls -R docs
2628
- name: Build Documentation
2729
run: |
2830
cd docs
2931
make html
3032
echo "Contents of _build/html directory:"
3133
ls -R _build/html
3234
continue-on-error: true
35+
- name: Debug - Check Sphinx build output
36+
run: |
37+
cat docs/_build/html/output.log
38+
continue-on-error: true
3339
- name: Check build output
3440
run: |
3541
ls -R docs/_build/html
@@ -41,5 +47,4 @@ jobs:
4147
path: 'docs/_build/html'
4248
- name: Deploy to GitHub Pages
4349
id: deployment
44-
uses: actions/deploy-pages@v2
45-
50+
uses: actions/deploy-pages@v2

docs/Makefile

+11-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
# Minimal makefile for Sphinx documentation
2-
#
32

43
# You can set these variables from the command line, and also
54
# from the environment for the first two.
@@ -12,9 +11,19 @@ BUILDDIR = _build
1211
help:
1312
@$(SPHINXBUILD) -M help "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
1413

15-
.PHONY: help Makefile
14+
.PHONY: help Makefile clean
15+
16+
# Clean target to remove build artifacts
17+
clean:
18+
rm -rf $(BUILDDIR)/*
1619

1720
# Catch-all target: route all unknown targets to Sphinx using the new
1821
# "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS).
1922
%: Makefile
2023
@$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
24+
25+
# Custom target for GitHub Actions
26+
github:
27+
@make html
28+
@echo "Build completed. Check the contents of $(BUILDDIR)/html"
29+
@ls -R $(BUILDDIR)/html

docs/source/conf.py

+12-5
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,9 @@
1616
'sphinx.ext.autodoc',
1717
'sphinx.ext.napoleon',
1818
'nbsphinx',
19-
'sphinx.ext.viewcode', # Ajoute des liens vers le code source
20-
'sphinx.ext.githubpages', # Support pour GitHub Pages
19+
'sphinx.ext.viewcode',
20+
'sphinx.ext.githubpages',
21+
'sphinx.ext.intersphinx',
2122
]
2223

2324
# Configuration de base
@@ -30,11 +31,11 @@
3031
exclude_patterns = ['_build', 'Thumbs.db', '.DS_Store']
3132

3233
# Thème et style
33-
html_theme = 'alabaster'
34+
html_theme = 'sphinx_rtd_theme'
3435
html_static_path = ['_static']
3536
html_logo = '_static/logo.png'
3637

37-
# Configuration supplémentaire pour une meilleure documentation
38+
# Configuration supplémentaire
3839
autodoc_member_order = 'bysource'
3940
napoleon_google_docstring = True
4041
napoleon_numpy_docstring = True
@@ -46,4 +47,10 @@
4647
napoleon_use_admonition_for_references = False
4748
napoleon_use_ivar = False
4849
napoleon_use_param = True
49-
napoleon_use_rtype = True
50+
napoleon_use_rtype = True
51+
52+
# Configuration pour intersphinx
53+
intersphinx_mapping = {
54+
'python': ('https://docs.python.org/3', None),
55+
'pandas': ('https://pandas.pydata.org/docs/', None),
56+
}

0 commit comments

Comments
 (0)