Skip to content

Commit 09dab11

Browse files
authored
DOC: BLD: remove -scipyopt from html Make command and build output (scipy#16327)
1 parent 75daa25 commit 09dab11

File tree

12 files changed

+28
-36
lines changed

12 files changed

+28
-36
lines changed

Diff for: .circleci/config.yml

+5-5
Original file line numberDiff line numberDiff line change
@@ -119,16 +119,16 @@ jobs:
119119
no_output_timeout: 25m
120120
command: |
121121
export PYTHONPATH=$PWD/build-install/lib/python3.8/site-packages
122-
python dev.py -n -j2 --doc html-scipyorg
122+
python dev.py -n -j2 --doc html
123123
124124
- store_artifacts:
125-
path: doc/build/html-scipyorg
126-
destination: html-scipyorg
125+
path: doc/build/html
126+
destination: html
127127

128128
- persist_to_workspace:
129129
root: doc/build
130130
paths:
131-
- html-scipyorg
131+
- html
132132

133133
# Run benchmarks
134134

@@ -185,7 +185,7 @@ jobs:
185185
(git checkout --orphan tmp && git branch -D gh-pages || true);
186186
git checkout --orphan gh-pages;
187187
git reset --hard;
188-
cp -R /tmp/build/html-scipyorg/. .;
188+
cp -R /tmp/build/html/. .;
189189
touch .nojekyll;
190190
git config --global user.email "scipy-circleci-bot@nomail";
191191
git config --global user.name "scipy-circleci-bot";

Diff for: .github/workflows/circle_artifacts.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,6 @@ jobs:
88
uses: larsoner/circleci-artifacts-redirector-action@master
99
with:
1010
repo-token: ${{ secrets.GITHUB_TOKEN }}
11-
artifact-path: 0/html-scipyorg/index.html
11+
artifact-path: 0/html/index.html
1212
circleci-jobs: build_docs
1313
job-title: Check the rendered docs here!

Diff for: dev.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ def main(argv):
162162
parser.add_argument("--mypy", action="store_true", default=False,
163163
help="Run mypy on the codebase")
164164
parser.add_argument("--doc", action="append", nargs="?",
165-
const="html-scipyorg", help="Build documentation")
165+
const="html", help="Build documentation")
166166
parser.add_argument("--win-cp-openblas", action="store_true",
167167
help="If set, and on Windows, copy OpenBLAS lib to "
168168
"install directory after meson install. "

Diff for: do.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -907,7 +907,7 @@ def run(cls, **kwargs):
907907
class Doc(Task):
908908
""":wrench: Build documentation
909909
910-
TARGETS: Sphinx build targets [default: 'html-scipyorg']
910+
TARGETS: Sphinx build targets [default: 'html']
911911
"""
912912
ctx = CONTEXT
913913

@@ -928,7 +928,7 @@ def task_meta(cls, list_targets, parallel, args, **kwargs):
928928
targets = ''
929929
else:
930930
task_dep = ['build']
931-
targets = ' '.join(args) if args else 'html-scipyorg'
931+
targets = ' '.join(args) if args else 'html'
932932

933933
kwargs.update(cls.ctx.get())
934934
Args = namedtuple('Args', [k for k in kwargs.keys()])

Diff for: doc/Makefile

+6-15
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ ALLSPHINXOPTS = -d build/doctrees $(SPHINXOPTS) source
2020
help:
2121
@echo "Please use \`make <target>' where <target> is one of"
2222
@echo " html to make standalone HTML files"
23-
@echo " html-scipyorg to make standalone HTML files with scipy.org theming"
2423
@echo " pickle to make pickle files (usable by e.g. sphinx-web)"
2524
@echo " htmlhelp to make HTML files and a HTML help project"
2625
@echo " changes to make an overview over all changed/added/deprecated items"
@@ -29,7 +28,7 @@ help:
2928
@echo " dist to make a distribution-ready tree (installing Scipy in venv)"
3029
@echo " doc-dist to make a distribution-ready tree (assuming Scipy is installed)"
3130
@echo " upload USERNAME=... RELEASE=... to upload built docs to docs.scipy.org"
32-
@echo " show to show the html-scipyorg output"
31+
@echo " show to show the HTML output"
3332

3433
clean:
3534
-rm -rf build/* source/reference/generated
@@ -78,12 +77,12 @@ dist:
7877

7978
doc-dist: VERSIONWARNING=-t versionwarning
8079

81-
doc-dist: html-scipyorg html
80+
doc-dist: html
8281
-test -d build/htmlhelp || make htmlhelp-build
8382
-rm -rf build/dist
8483
mkdir -p build/dist
85-
cp -r build/html-scipyorg/* build/dist
86-
(cd build/html-scipyorg && zip -9qr ../dist/scipy-html.zip .)
84+
cp -r build/html/* build/dist
85+
(cd build/html && zip -9qr ../dist/scipy-html.zip .)
8786
chmod ug=rwX,o=rX -R build/dist
8887
find build/dist -type d -print0 | xargs -0r chmod g+s
8988
cd build/dist && tar czf ../dist.tar.gz *
@@ -108,15 +107,7 @@ upload:
108107
html: version-check html-build
109108
html-build:
110109
mkdir -p build/html build/doctrees
111-
$(SPHINXBUILD) -b html $(ALLSPHINXOPTS) build/html $(FILES)
112-
@echo
113-
@echo "Build finished. The HTML pages are in build/html."
114-
115-
html-scipyorg:
116-
mkdir -p build/html build/doctrees
117-
$(SPHINXBUILD) -WT --keep-going -t scipyorg $(VERSIONWARNING) -b html $(ALLSPHINXOPTS) build/html-scipyorg $(FILES)
118-
@echo
119-
@echo "Build finished. The HTML pages are in build/html-scipyorg."
110+
$(SPHINXBUILD) -WT --keep-going $(VERSIONWARNING) -b html $(ALLSPHINXOPTS) build/html $(FILES)
120111

121112
coverage: build version-check
122113
mkdir -p build/coverage build/doctrees
@@ -137,4 +128,4 @@ linkcheck: version-check
137128
"or in build/linkcheck/output.txt."
138129

139130
show:
140-
@python -c "import webbrowser; webbrowser.open_new_tab('file://$(PWD)/build/html-scipyorg/index.html')"
131+
@python -c "import webbrowser; webbrowser.open_new_tab('file://$(PWD)/build/html/index.html')"

Diff for: doc/README.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ Alternatively, if you prefer to build SciPy and the docs separately rather
2121
than use `runtests.py`:
2222
```
2323
python setup.py develop # in the root of the repo
24-
cd doc && make html-scipyorg
24+
cd doc && make html
2525
```
2626

2727
In case the SciPy version found by the above command is different from that of the
@@ -34,7 +34,7 @@ This indicates that you're likely picking up the wrong SciPy install, check
3434
with `python -c "import scipy; print(scipy.__file__)"`.
3535

3636
If the build is successful, you can open it in your browser with `make show`
37-
(which will open `build/html-scipyorg/index.html`).
37+
(which will open `build/html/index.html`).
3838

3939
## Building documentation for a release
4040

@@ -56,4 +56,4 @@ be redistributed.
5656
- `tutorial` contains all tutorial content.
5757
- `release` contains the release notes. Note that those normally should not be
5858
updated as part of a PR; we keep release notes for the upcoming releases
59-
on the wiki of the main SciPy repo.
59+
on the wiki of the main SciPy repo.

Diff for: doc/source/dev/contributor/quickstart_gitpod.rst

+2-2
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ The documentation is pre-built during your workspace initialization. So once thi
117117
Option 1: Using Liveserve
118118
***************************
119119

120-
#. View the documentation in ``scipy/doc/build/html-scipyorg``. You can start with ``index.html`` and browse, or you can jump straight to the file you're interested in.
120+
#. View the documentation in ``scipy/doc/build/html``. You can start with ``index.html`` and browse, or you can jump straight to the file you're interested in.
121121
#. To see the rendered version of a page, you can right-click on the ``.html`` file and click on **Open with Live Serve**. Alternatively, you can open the file in the editor and click on the **Go live** button on the status bar.
122122

123123
.. image:: ../../_static/gitpod/vscode-statusbar.png
@@ -145,7 +145,7 @@ A quick and easy way to see live changes in a ``.rst`` file as you work on it us
145145
.. image:: ../../_static/gitpod/rst-rendering.png
146146
:alt: Gitpod workspace - Quickstart Docker rst file opened on the left and rendered version on the right group of the editor.
147147

148-
If you want to see the final output with the ``html`` theme you will need to rebuild the docs with ``make html-scipyorg`` and use Live Serve as described in option 1.
148+
If you want to see the final output with the ``html`` theme you will need to rebuild the docs with ``make html`` and use Live Serve as described in option 1.
149149

150150
FAQ's
151151
-----

Diff for: doc/source/dev/contributor/rendering_documentation.rst

+2-2
Original file line numberDiff line numberDiff line change
@@ -38,15 +38,15 @@ To render the documentation on your own machine:
3838
Some of the documentation theme files are not distributed
3939
with the main ``scipy`` repository; this keeps them up to date using
4040
`git submodules`_.
41-
#. Enter ``make html-scipyorg``. If you have multiple version of Python on
41+
#. Enter ``make html``. If you have multiple version of Python on
4242
your path, you can choose which version to use by appending
4343
``PYTHON=python3.9`` to this command, where ``python3.9`` is to be
4444
replaced with the name of the Python you use for SciPy development.
4545
This uses the `Make build automation tool`_
4646
to execute the documentation build instructions from the ``Makefile``.
4747
This can take a while the first time, but subsequent documentation builds
4848
are typically much faster.
49-
#. View the documentation in ``scipy/doc/build/html-scipyorg``. You can start
49+
#. View the documentation in ``scipy/doc/build/html``. You can start
5050
with ``index.html`` and browse, or you can jump straight to the file you’re
5151
interested in.
5252

Diff for: doc/source/dev/contributor/runtests.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ Other useful options include:
8484
``scipy/build/coverage/index.html``. *Note:* |pytest-cov|_ *must be
8585
installed.*
8686
- ``--doc`` to build the docs in ``scipy/doc/build``. By default,
87-
docs are built only in the ``html-scipyorg`` format, but you can
87+
docs are built only in the ``html`` format, but you can
8888
change this by appending the name of the desired format.
8989
- ``--refguide-check`` to check whether the objects in a Scipy submodule's
9090
``__all__`` dict correspond to the objects included in the reference

Diff for: doc/source/dev/contributor/using_act.rst

+3-2
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,8 @@ To run the job with verbose logging, push in the following command::
4747

4848
act -v
4949

50-
To reuse the containers in `act` to maintain state, push in the following command::
50+
To reuse the containers in ``act`` to maintain state, push in the following
51+
command::
5152

5253
act -j <JOB_NAME> --bind --reuse
5354

@@ -59,7 +60,7 @@ pushing the following command::
5960

6061
act --secret-file my.secrets
6162

62-
If the environment variables are supplied via `.env` file, use the following
63+
If the environment variables are supplied via ``.env`` file, use the following
6364
command::
6465

6566
act --env-file my.env

Diff for: runtests.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ def main(argv):
132132
parser.add_argument("--mypy", action="store_true", default=False,
133133
help="Run mypy on the codebase")
134134
parser.add_argument("--doc", action="append", nargs="?",
135-
const="html-scipyorg", help="Build documentation")
135+
const="html", help="Build documentation")
136136
args = parser.parse_args(argv)
137137

138138
if args.pep8:

Diff for: tools/docker_dev/settings.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"python.defaultInterpreterPath": "/opt/conda/envs/scipy-dev/bin/python",
33
// rst related - for the docs
4-
"esbonio.sphinx.buildDir": "${workspaceRoot}/doc/build/html-scipyorg",
4+
"esbonio.sphinx.buildDir": "${workspaceRoot}/doc/build/html",
55
"esbonio.sphinx.confDir" : "",
66
// will use docutils only
77
"esbonio.server.enabled": false,

0 commit comments

Comments
 (0)