Skip to content

Commit 0ca1881

Browse files
committed
Add Makefile and instructions to build the docs locally
1 parent 7fa6f7e commit 0ca1881

File tree

3 files changed

+31
-12
lines changed

3 files changed

+31
-12
lines changed

Makefile

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# Python version can be specified with `$ PYTHON_EXE=python3.x make ...`
2+
PYTHON_EXE?=python3
3+
VENV_LOCATION=venv
4+
ACTIVATE?=. ${VENV_LOCATION}/bin/activate;
5+
6+
conf:
7+
@echo "-> Install dependencies"
8+
./configure --docs
9+
10+
docs: conf
11+
rm -rf docs/build/
12+
@${ACTIVATE} sphinx-build docs/source docs/build/
13+
14+
clean:
15+
@echo "-> Clean the Python env"
16+
rm -rf .venv/ .*cache/ *.egg-info/ build/ dist/
17+
find . -type f -name '*.py[co]' -delete -o -type d -name __pycache__ -delete
18+
19+
.PHONY: conf docs clean

README.md

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,17 +17,22 @@ is vulnerable should be a problem of the past such that everyone can safely
1717
consume more free and open source software. We support not only open source
1818
software, but also open data, generated and curated by our applications.
1919

20-
> **_NOTE:_** This is a repository with information on aboutcode open source
20+
> [!NOTE]
21+
> This is a repository with information on aboutcode open source
2122
> activities and not the actual code repository. See the
2223
> [projects section](https://github.com/aboutcode-org/aboutcode#projects) below
2324
> for links to all the code repositories of our projects with a brief overview
2425
> and our [wiki](https://github.com/aboutcode-org/aboutcode/wiki) if you are
2526
> looking to participate.
2627
27-
### Documentation Build Status
28+
### Documentation Build
2829

2930
![Doc Build](https://github.com/aboutcode-org/aboutcode/actions/workflows/docs-ci.yml/badge.svg)
3031

32+
> [!NOTE]
33+
> To manually build the documentation, run the `$ make docs` command from
34+
> the root of this repo.
35+
3136
### Important Links
3237

3338
Our homepage is at http://aboutcode.org

setup.cfg

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -28,22 +28,17 @@ license_files =
2828

2929
[options]
3030
zip_safe = false
31-
3231
setup_requires = setuptools_scm[toml] >= 4
33-
3432
python_requires = >=3.7
35-
3633
install_requires =
3734

3835

3936
[options.extras_require]
40-
4137
docs =
42-
Sphinx == 5.1.0
43-
sphinx-rtd-theme >= 0.5.0
44-
sphinx-reredirects >= 0.1.2
45-
doc8 >= 0.8.1
38+
Sphinx
39+
sphinx-rtd-theme
40+
sphinx-reredirects
41+
doc8
4642
sphinx-autobuild
47-
sphinx-rtd-dark-mode>=1.3.0
43+
sphinx-rtd-dark-mode
4844
sphinx-copybutton
49-

0 commit comments

Comments
 (0)