Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make furo sage standard doc theme #33833

Closed
tobiasdiez opened this issue May 10, 2022 · 95 comments
Closed

Make furo sage standard doc theme #33833

tobiasdiez opened this issue May 10, 2022 · 95 comments

Comments

@tobiasdiez
Copy link
Contributor

In #33601, the furo theme has been introduced for the documentation. The aim of this ticket is to make it the standard theme. Before it happens, the remaining issues need to be fixed:

To support this ticket, the standard Furo package was accepted by the voting done in

along with subsidiary votings in

Other possible improvements:

Depends on #34252
Depends on #34262
Depends on #34265
Depends on #34267
Depends on #34450

CC: @kwankyu @strogdon @haraldschilly @mkoeppe

Component: documentation

Author: Kwankyu Lee, Matthias Koeppe

Branch/Commit: 1f03957

Reviewer: Matthias Koeppe, Kwankyu Lee

Issue created by migration from https://trac.sagemath.org/ticket/33833

@kwankyu

This comment has been minimized.

@kwankyu
Copy link
Collaborator

kwankyu commented Aug 1, 2022

Author: Kwankyu Lee

@kwankyu
Copy link
Collaborator

kwankyu commented Aug 1, 2022

Branch: u/klee/33833

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Aug 1, 2022

Commit: e5b1f7e

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Aug 1, 2022

Branch pushed to git repo; I updated commit sha1. New commits:

9d1e07aRevive furo
f19b597Add link to the logo
09d5f5cFix the logo link for reference
ae75d53Fix a subtle reference problem for build_options
3519bedRun docbuild workflow with single thread
1274718Fix a suspicious part of categories doc
e5b1f7eAdd search.html

@kwankyu
Copy link
Collaborator

kwankyu commented Aug 1, 2022

Dependencies: #34252

@kwankyu

This comment has been minimized.

@kwankyu
Copy link
Collaborator

kwankyu commented Aug 1, 2022

Changed branch from u/klee/33833 to none

@kwankyu
Copy link
Collaborator

kwankyu commented Aug 1, 2022

Changed author from Kwankyu Lee to none

@kwankyu

This comment has been minimized.

@kwankyu
Copy link
Collaborator

kwankyu commented Aug 1, 2022

Changed commit from e5b1f7e to none

@kwankyu
Copy link
Collaborator

kwankyu commented Aug 1, 2022

Changed dependencies from #34252 to none

@kwankyu

This comment has been minimized.

@mkoeppe

This comment has been minimized.

@kwankyu

This comment has been minimized.

@kwankyu

This comment has been minimized.

@kwankyu

This comment has been minimized.

@mkoeppe
Copy link
Contributor

mkoeppe commented Aug 3, 2022

comment:13

It looks like that after these refinements, the new theme may be ready to become standard. How about a sage-devel vote?

@mkoeppe

This comment has been minimized.

@kwankyu
Copy link
Collaborator

kwankyu commented Aug 3, 2022

Branch: u/klee/make-furo-standard-theme

@kwankyu
Copy link
Collaborator

kwankyu commented Aug 3, 2022

Commit: 79e7ff7

@kwankyu
Copy link
Collaborator

kwankyu commented Aug 3, 2022

comment:16

I don't see this a problem:

and removed it.


Last 10 new commits:

ebd3b77Better pygments style
73e5aa3Make white logo transparent to match with furo
183e558Merge branch 'develop' into t/34252/revive-furo
40377a6Make single column index page
c99c280Add a Home link to the doc root
bf04b5dMerge branch 't/34267/add_a_home_link_to_the_doc_root' into make-furo-standard-theme
49a9316Remove toc warnings
16cbb44Take care of a missed toc directive
502fe68Merge branch 't/34262/remove_toc_warnings' into make-furo-standard-theme
79e7ff7Make furo sage standard sphinx theme

@kwankyu

This comment has been minimized.

@kwankyu
Copy link
Collaborator

kwankyu commented Aug 29, 2022

comment:65

Replying to @mkoeppe:

Sorry that I forgot about that when I reviewed the ticket!

The policy should be mentioned here:

https://doc.sagemath.org/html/en/developer/packaging.html#prerequisites-for-new-standard-packages

@kwankyu
Copy link
Collaborator

kwankyu commented Aug 29, 2022

comment:66

Then could it be that furo is still the default when we build sage from source?

@mkoeppe
Copy link
Contributor

mkoeppe commented Aug 29, 2022

comment:67

We'd need to add the Python packages that are needed for building furo from source. But I'm not sure if that solves the problem completely because one of these dependencies is nodeenv, which suggests that the build process may also need to fetch Javascript packages.

@mkoeppe
Copy link
Contributor

mkoeppe commented Aug 29, 2022

comment:68

I'd suggest that we back out the change to "standard" from this ticket and pursue the path to make it a standard normal package on a separate ticket

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Aug 29, 2022

Changed commit from 666e90d to fe77168

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Aug 29, 2022

Branch pushed to git repo; I updated commit sha1. Last 10 new commits:

480837bbuild/pkgs/nodeenv: Change to standard (sphinx_theme_builder dependency)
e830650build/pkgs/rich: New
1d5c5cabuild/pkgs/commonmark: New (dependency of rich)
39ceec8build/pkgs/typing_extensions: Update to 4.3.0
3516e51build/pkgs/sphinx_theme_builder: New
b1cdacdbuild/pkgs/pyproject_metadata: New
345c019build/pkgs/pyproject_metadata/dependencies: Update
8da3288Merge #34449
611453cbuild/pkgs/pyproject_metadata: Update to 0.6.1
fe77168build/pkgs/nodeenv: Change to a standard normal package

@mkoeppe
Copy link
Contributor

mkoeppe commented Aug 29, 2022

comment:70

Anyway here's the branch with all the dependencies - and it does have the problem that I thought:

[furo-2022.6.21] Building wheels for collected packages: furo
[furo-2022.6.21]   Building wheel for furo (pyproject.toml): started
[furo-2022.6.21]   Running command Building wheel for furo (pyproject.toml)
[furo-2022.6.21]   [stb] # nodeenv does not exist.
[furo-2022.6.21]   [stb] # Generating new nodeenv with NodeJS 16.15.1!
[furo-2022.6.21]   [stb] $ python -m nodeenv --node=16.15.1 --prebuilt --clean-src
[furo-2022.6.21]   /Users/mkoeppe/s/sage/sage-rebasing/worktree-rebase/local/var/lib/sage/venv-pyth
[furo-2022.6.21]   on3.8/var/tmp/sage/build/furo-2022.6.21/src/.nodeenv
[furo-2022.6.21]    * Install prebuilt node (16.15.1) .
[...]
[furo-2022.6.21]   TimeoutError: [Errno 60] Operation timed out
[furo-2022.6.21] 

(it's trying to download Node.js from the internet, which fails because our installation poisons the https proxy)

@mkoeppe
Copy link
Contributor

mkoeppe commented Aug 29, 2022

comment:71

An alternative direction would be to install furo from a wheel. We don't have a mechanism for that yet, but it would not be very hard to add.

This would avoid the complicated nodeenv business (which is only needed for from-source build of furo).

I've opened #34450 for this

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Aug 29, 2022

Changed commit from fe77168 to 6f813de

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Aug 29, 2022

Branch pushed to git repo; I updated commit sha1. This was a forced push. New commits:

8d90b56build/pkgs/furo: Make it a normal package
28f30acbuild/bin/sage-spkg: Handle *.whl packages
fd1c677build/pkgs/furo: Use a wheel
9fa490abuild/pkgs/sphinx_basic_ng: New (furo dependency)
6f813deMerge #34450

@mkoeppe
Copy link
Contributor

mkoeppe commented Aug 29, 2022

comment:73

Try this

@mkoeppe
Copy link
Contributor

mkoeppe commented Aug 29, 2022

Changed dependencies from #34252, #34262, #34265, #34267 to #34252, #34262, #34265, #34267, #34450

@mkoeppe
Copy link
Contributor

mkoeppe commented Aug 29, 2022

comment:75

Replying to @kwankyu:

Replying to @mkoeppe:

Sorry that I forgot about that when I reviewed the ticket!

The policy should be mentioned here:

https://doc.sagemath.org/html/en/developer/packaging.html#prerequisites-for-new-standard-packages

I've added it to the documentation in #34450

@kwankyu
Copy link
Collaborator

kwankyu commented Aug 29, 2022

comment:76

Replying to @mkoeppe:

Try this

With #34421, the branch successfully builds sage and doc in furo theme from scratch.

@kwankyu
Copy link
Collaborator

kwankyu commented Aug 29, 2022

@kwankyu
Copy link
Collaborator

kwankyu commented Aug 29, 2022

Changed commit from 6f813de to 1f03957

@kwankyu
Copy link
Collaborator

kwankyu commented Aug 29, 2022

comment:78

It works well. Thank Matthias!


New commits:

eba7f6fsrc/doc/en/developer/packaging.rst: Document wheel packages
8e06d43src/doc/en/developer/packaging.rst: Policy on wheels, on standard packages
b12e9dcUse the name platform-independent
d887d44Use rerun instead of re-run
1f03957Merge branch 't/34450/standard_wheel_packages' into t/33833/make-furo-standard-theme

@kwankyu
Copy link
Collaborator

kwankyu commented Aug 29, 2022

Changed reviewer from Matthias Koeppe to Matthias Koeppe, Kwankyu Lee

@kwankyu
Copy link
Collaborator

kwankyu commented Aug 29, 2022

comment:79

The branch also passes Volker's test.

@mkoeppe
Copy link
Contributor

mkoeppe commented Aug 29, 2022

comment:80

Great, thanks for testing!

@vbraun
Copy link
Member

vbraun commented Sep 7, 2022

Changed branch from u/klee/make-furo-standard-theme to 1f03957

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

7 participants