Skip to content

Commit ec25356

Browse files
committed
Remove out-of-date make things, new top-level Makefile
1 parent 18fd07c commit ec25356

File tree

9 files changed

+33
-80
lines changed

9 files changed

+33
-80
lines changed

.circleci/config.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,9 @@ jobs:
2020
no_output_timeout: 25m
2121
command: |
2222
pip install .[doc]
23-
make -C spec/ build
23+
make
2424
- store_artifacts:
25-
path: spec/_build/
25+
path: _site/
2626

2727
workflows:
2828
version: 2

.github/workflows/pages.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ jobs:
8383
run: |
8484
# Turn warnings into errors and ensure .doctrees is not deployed:
8585
export SPHINXOPTS="-b html -WT --keep-going -d doctrees"
86-
make -C spec/ build
86+
make
8787
8888
# Configure Git:
8989
- name: 'Configure Git'
@@ -101,8 +101,8 @@ jobs:
101101

102102
- name: 'Copy build to root'
103103
run: |
104-
cp -R ./spec/_build/* .
105-
cp ./spec/_build/.gitignore .
104+
cp -R ./_site/* .
105+
cp ./_site/.gitignore .
106106
timeout-minutes: 10
107107

108108
# Commit changes to:

.github/workflows/preview.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,6 @@ jobs:
1111
uses: larsoner/circleci-artifacts-redirector-action@master
1212
with:
1313
repo-token: ${{ secrets.GITHUB_TOKEN }}
14-
artifact-path: 0/spec/_build/draft/index.html
14+
artifact-path: 0/_site/draft/index.html
1515
circleci-jobs: build_page
1616
job-title: Check the rendered docs here!

.gitignore

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
# SOFTWARE.
2323
#/
2424

25-
spec/_build/
25+
_site/
2626
doctrees/
2727
build/
2828
.vscode/

CONTRIBUTING.md

+2-3
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,8 @@ folder in `spec/`. To build the whole website, which includes every version of
3333
the spec, you can utilize the `make` commands defined in `spec/Makefile`:
3434

3535
```sh
36-
$ make -C spec/ clean
37-
$ make -C spec/ build
38-
$ ls spec/_build/
36+
$ make
37+
$ ls _site/
3938
2021.12/ draft/ index.html latest/ versions.json
4039
```
4140

Makefile

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# You can set these variables from the command line, and also
2+
# from the environment for the first two.
3+
SPHINXOPTS ?= -W --keep-going
4+
SOURCEDIR = ./spec
5+
BUILDDIR = _site
6+
7+
.PHONY: all clean build
8+
9+
all: clean build
10+
11+
clean:
12+
-rm -rf $(BUILDDIR)
13+
-rm -rf $(SOURCEDIR)/**/generated
14+
15+
build:
16+
-mkdir -p $(BUILDDIR)
17+
-cp "$(SOURCEDIR)/_gitignore.txt" "$(BUILDDIR)/.gitignore"
18+
-cp "$(SOURCEDIR)/versions.json" "$(BUILDDIR)/versions.json"
19+
-cp "$(SOURCEDIR)/index.html" "$(BUILDDIR)/index.html"
20+
-touch "$(BUILDDIR)/.nojekyll"
21+
-sphinx-build "$(SOURCEDIR)/2021.12" "$(BUILDDIR)/2021.12" $(SPHINXOPTS)
22+
-cp -r "$(BUILDDIR)/2021.12" "$(BUILDDIR)/latest"
23+
-sphinx-build "$(SOURCEDIR)/draft" "$(BUILDDIR)/draft" $(SPHINXOPTS)

spec/Makefile

-34
This file was deleted.

spec/_gitignore.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
# SOFTWARE.
2323
#/
2424

25-
spec/_build/
25+
_site
2626
build/
2727
doctrees/
2828
.vscode/

spec/make.bat

-35
This file was deleted.

0 commit comments

Comments
 (0)