Skip to content

Remove ability to conditionalize parts of the documentation #39990

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

Merged
merged 4 commits into from
May 11, 2025

Conversation

tobiasdiez
Copy link
Contributor

@tobiasdiez tobiasdiez commented Apr 21, 2025

The PR #36495 introduced the ability to disable building parts of the documentation based on some features. This was meant to help the modularization project, but was never actually used.

On the other hand, it checks for every of the around 200 document the presence of every feature, leading to quite a considerable overhead for building the documentation. Thus this feature is reverted for now (until it's actually needed and perhaps can be re-implemented in a better way).

📝 Checklist

  • The title is concise and informative.
  • The description explains in detail what this PR is about.
  • I have linked a relevant issue or discussion.
  • I have created tests covering the changes.
  • I have updated the documentation and checked the documentation preview.

⌛ Dependencies

Copy link

github-actions bot commented Apr 21, 2025

Documentation preview for this PR (built with commit c687717; changes) is ready! 🎉
This preview will update shortly after each push to this PR.

@tobiasdiez
Copy link
Contributor Author

Failing tests seem to be false-alerts.

@dimpase could you please have a look at this PR. Thanks!

@dimpase
Copy link
Member

dimpase commented Apr 23, 2025

thanks for taking care of this

@vbraun
Copy link
Member

vbraun commented Apr 27, 2025

The new chinese tour also needs the same treatment, can you add it after the next beta is released?

#39792

@fisheryv
Copy link
Contributor

The new chinese tour also needs the same treatment, can you add it after the next beta is released?

#39792

Of course, I will follow this work.

fisheryv added a commit to fisheryv/sage that referenced this pull request Apr 30, 2025
@fisheryv
Copy link
Contributor

@vbraun, I have created PR #40025, which followed this PR and reverted relevant conf.py files.

@tobiasdiez
Copy link
Contributor Author

@vbraun, I have created PR #40025, which followed this PR and reverted relevant conf.py files.

@vbraun: does it work now with both of these PRs merged?

vbraun pushed a commit to vbraun/sage that referenced this pull request May 1, 2025
sagemathgh-39990: Remove ability to conditionalize parts of the documentation
    
The PR sagemath#36495 introduced the ability to disable building parts of the
documentation based on some features. This was meant to help the
modularization project, but was never actually used.

On the other hand, it checks for *every* of the around 200 document the
presence of *every* feature, leading to quite a considerable overhead
for building the documentation. Thus this feature is reverted for now
(until it's actually needed and perhaps can be re-implemented in a
better way).

<!-- ^ Please provide a concise and informative title. -->
<!-- ^ Don't put issue numbers in the title, do this in the PR
description below. -->
<!-- ^ For example, instead of "Fixes sagemath#12345" use "Introduce new method
to calculate 1 + 2". -->
<!-- v Describe your changes below in detail. -->
<!-- v Why is this change required? What problem does it solve? -->
<!-- v If this PR resolves an open issue, please link to it here. For
example, "Fixes sagemath#12345". -->



### 📝 Checklist

<!-- Put an `x` in all the boxes that apply. -->

- [ ] The title is concise and informative.
- [ ] The description explains in detail what this PR is about.
- [ ] I have linked a relevant issue or discussion.
- [ ] I have created tests covering the changes.
- [ ] I have updated the documentation and checked the documentation
preview.

### ⌛ Dependencies

<!-- List all open PRs that this PR logically depends on. For example,
-->
<!-- - sagemath#12345: short description why this is a dependency -->
<!-- - sagemath#34567: ... -->
    
URL: sagemath#39990
Reported by: Tobias Diez
Reviewer(s): Dima Pasechnik
vbraun pushed a commit to vbraun/sage that referenced this pull request May 1, 2025
sagemathgh-40025: Follow the PR sagemath#39990, revert "src/doc/zh/**/conf.py: Fix handling of tags"
    
Follow the PR sagemath#39990, remove ability to conditionalize parts of the
documentation  from Chinese docs.

I have reverted ` src/doc/zh/**/conf.py` as what @tobiasdiez did in
commit fc6a150. @vbraun

### 📝 Checklist

<!-- Put an `x` in all the boxes that apply. -->

- [x] The title is concise and informative.
- [x] The description explains in detail what this PR is about.
- [x] I have linked a relevant issue or discussion.
- [ ] I have created tests covering the changes.
- [ ] I have updated the documentation and checked the documentation
preview.

### ⌛ Dependencies

sagemath#39990 : Remove ability to conditionalize parts of the documentation
    
URL: sagemath#40025
Reported by: Fisher
Reviewer(s): Tobias Diez
vbraun pushed a commit to vbraun/sage that referenced this pull request May 4, 2025
sagemathgh-39990: Remove ability to conditionalize parts of the documentation
    
The PR sagemath#36495 introduced the ability to disable building parts of the
documentation based on some features. This was meant to help the
modularization project, but was never actually used.

On the other hand, it checks for *every* of the around 200 document the
presence of *every* feature, leading to quite a considerable overhead
for building the documentation. Thus this feature is reverted for now
(until it's actually needed and perhaps can be re-implemented in a
better way).

<!-- ^ Please provide a concise and informative title. -->
<!-- ^ Don't put issue numbers in the title, do this in the PR
description below. -->
<!-- ^ For example, instead of "Fixes sagemath#12345" use "Introduce new method
to calculate 1 + 2". -->
<!-- v Describe your changes below in detail. -->
<!-- v Why is this change required? What problem does it solve? -->
<!-- v If this PR resolves an open issue, please link to it here. For
example, "Fixes sagemath#12345". -->



### 📝 Checklist

<!-- Put an `x` in all the boxes that apply. -->

- [ ] The title is concise and informative.
- [ ] The description explains in detail what this PR is about.
- [ ] I have linked a relevant issue or discussion.
- [ ] I have created tests covering the changes.
- [ ] I have updated the documentation and checked the documentation
preview.

### ⌛ Dependencies

<!-- List all open PRs that this PR logically depends on. For example,
-->
<!-- - sagemath#12345: short description why this is a dependency -->
<!-- - sagemath#34567: ... -->
    
URL: sagemath#39990
Reported by: Tobias Diez
Reviewer(s): Dima Pasechnik
vbraun pushed a commit to vbraun/sage that referenced this pull request May 4, 2025
sagemathgh-40025: Follow the PR sagemath#39990, revert "src/doc/zh/**/conf.py: Fix handling of tags"
    
Follow the PR sagemath#39990, remove ability to conditionalize parts of the
documentation  from Chinese docs.

I have reverted ` src/doc/zh/**/conf.py` as what @tobiasdiez did in
commit fc6a150. @vbraun

### 📝 Checklist

<!-- Put an `x` in all the boxes that apply. -->

- [x] The title is concise and informative.
- [x] The description explains in detail what this PR is about.
- [x] I have linked a relevant issue or discussion.
- [ ] I have created tests covering the changes.
- [ ] I have updated the documentation and checked the documentation
preview.

### ⌛ Dependencies

sagemath#39990 : Remove ability to conditionalize parts of the documentation
    
URL: sagemath#40025
Reported by: Fisher
Reviewer(s): Tobias Diez
vbraun pushed a commit to vbraun/sage that referenced this pull request May 5, 2025
sagemathgh-39990: Remove ability to conditionalize parts of the documentation
    
The PR sagemath#36495 introduced the ability to disable building parts of the
documentation based on some features. This was meant to help the
modularization project, but was never actually used.

On the other hand, it checks for *every* of the around 200 document the
presence of *every* feature, leading to quite a considerable overhead
for building the documentation. Thus this feature is reverted for now
(until it's actually needed and perhaps can be re-implemented in a
better way).

<!-- ^ Please provide a concise and informative title. -->
<!-- ^ Don't put issue numbers in the title, do this in the PR
description below. -->
<!-- ^ For example, instead of "Fixes sagemath#12345" use "Introduce new method
to calculate 1 + 2". -->
<!-- v Describe your changes below in detail. -->
<!-- v Why is this change required? What problem does it solve? -->
<!-- v If this PR resolves an open issue, please link to it here. For
example, "Fixes sagemath#12345". -->



### 📝 Checklist

<!-- Put an `x` in all the boxes that apply. -->

- [ ] The title is concise and informative.
- [ ] The description explains in detail what this PR is about.
- [ ] I have linked a relevant issue or discussion.
- [ ] I have created tests covering the changes.
- [ ] I have updated the documentation and checked the documentation
preview.

### ⌛ Dependencies

<!-- List all open PRs that this PR logically depends on. For example,
-->
<!-- - sagemath#12345: short description why this is a dependency -->
<!-- - sagemath#34567: ... -->
    
URL: sagemath#39990
Reported by: Tobias Diez
Reviewer(s): Dima Pasechnik
vbraun pushed a commit to vbraun/sage that referenced this pull request May 5, 2025
sagemathgh-40025: Follow the PR sagemath#39990, revert "src/doc/zh/**/conf.py: Fix handling of tags"
    
Follow the PR sagemath#39990, remove ability to conditionalize parts of the
documentation  from Chinese docs.

I have reverted ` src/doc/zh/**/conf.py` as what @tobiasdiez did in
commit fc6a150. @vbraun

### 📝 Checklist

<!-- Put an `x` in all the boxes that apply. -->

- [x] The title is concise and informative.
- [x] The description explains in detail what this PR is about.
- [x] I have linked a relevant issue or discussion.
- [ ] I have created tests covering the changes.
- [ ] I have updated the documentation and checked the documentation
preview.

### ⌛ Dependencies

sagemath#39990 : Remove ability to conditionalize parts of the documentation
    
URL: sagemath#40025
Reported by: Fisher
Reviewer(s): Tobias Diez
vbraun pushed a commit to vbraun/sage that referenced this pull request May 6, 2025
sagemathgh-39990: Remove ability to conditionalize parts of the documentation
    
The PR sagemath#36495 introduced the ability to disable building parts of the
documentation based on some features. This was meant to help the
modularization project, but was never actually used.

On the other hand, it checks for *every* of the around 200 document the
presence of *every* feature, leading to quite a considerable overhead
for building the documentation. Thus this feature is reverted for now
(until it's actually needed and perhaps can be re-implemented in a
better way).

<!-- ^ Please provide a concise and informative title. -->
<!-- ^ Don't put issue numbers in the title, do this in the PR
description below. -->
<!-- ^ For example, instead of "Fixes sagemath#12345" use "Introduce new method
to calculate 1 + 2". -->
<!-- v Describe your changes below in detail. -->
<!-- v Why is this change required? What problem does it solve? -->
<!-- v If this PR resolves an open issue, please link to it here. For
example, "Fixes sagemath#12345". -->



### 📝 Checklist

<!-- Put an `x` in all the boxes that apply. -->

- [ ] The title is concise and informative.
- [ ] The description explains in detail what this PR is about.
- [ ] I have linked a relevant issue or discussion.
- [ ] I have created tests covering the changes.
- [ ] I have updated the documentation and checked the documentation
preview.

### ⌛ Dependencies

<!-- List all open PRs that this PR logically depends on. For example,
-->
<!-- - sagemath#12345: short description why this is a dependency -->
<!-- - sagemath#34567: ... -->
    
URL: sagemath#39990
Reported by: Tobias Diez
Reviewer(s): Dima Pasechnik
vbraun pushed a commit to vbraun/sage that referenced this pull request May 6, 2025
sagemathgh-40025: Follow the PR sagemath#39990, revert "src/doc/zh/**/conf.py: Fix handling of tags"
    
Follow the PR sagemath#39990, remove ability to conditionalize parts of the
documentation  from Chinese docs.

I have reverted ` src/doc/zh/**/conf.py` as what @tobiasdiez did in
commit fc6a150. @vbraun

### 📝 Checklist

<!-- Put an `x` in all the boxes that apply. -->

- [x] The title is concise and informative.
- [x] The description explains in detail what this PR is about.
- [x] I have linked a relevant issue or discussion.
- [ ] I have created tests covering the changes.
- [ ] I have updated the documentation and checked the documentation
preview.

### ⌛ Dependencies

sagemath#39990 : Remove ability to conditionalize parts of the documentation
    
URL: sagemath#40025
Reported by: Fisher
Reviewer(s): Tobias Diez
vbraun pushed a commit to vbraun/sage that referenced this pull request May 9, 2025
sagemathgh-40025: Follow the PR sagemath#39990, revert "src/doc/zh/**/conf.py: Fix handling of tags"
    
Follow the PR sagemath#39990, remove ability to conditionalize parts of the
documentation  from Chinese docs.

I have reverted ` src/doc/zh/**/conf.py` as what @tobiasdiez did in
commit fc6a150. @vbraun

### 📝 Checklist

<!-- Put an `x` in all the boxes that apply. -->

- [x] The title is concise and informative.
- [x] The description explains in detail what this PR is about.
- [x] I have linked a relevant issue or discussion.
- [ ] I have created tests covering the changes.
- [ ] I have updated the documentation and checked the documentation
preview.

### ⌛ Dependencies

sagemath#39990 : Remove ability to conditionalize parts of the documentation
    
URL: sagemath#40025
Reported by: Fisher
Reviewer(s): Tobias Diez
@vbraun vbraun merged commit 97844f4 into sagemath:develop May 11, 2025
21 of 24 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants