-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Replace add_javascript
with add_js_file
in Sphinx configuration script
#4363
Conversation
Signed-off-by: harupy <17039389+harupy@users.noreply.github.com>
Signed-off-by: harupy <17039389+harupy@users.noreply.github.com>
Signed-off-by: harupy <17039389+harupy@users.noreply.github.com>
Signed-off-by: harupy <17039389+harupy@users.noreply.github.com>
html_add_permalinks = " " | ||
html_permalinks_icon = " " |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fix for:
WARNING: html_add_permalinks has been deprecated since v3.5.0. Please use html_permalinks and html_permalinks_icon instead.
app.add_javascript(JS_FILE) | ||
app.add_js_file(JS_FILE) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fix for:
Handler <function add_assets at 0x7efeadbe8ea0> for event 'builder-inited' threw an exception (exception: 'Sphinx' object has no attribute 'add_javascript')
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great work!
@WeichenXu123 Thanks! |
…cript (mlflow#4363) * make sure docs build fails Signed-off-by: harupy <17039389+harupy@users.noreply.github.com> * use add_js_file Signed-off-by: harupy <17039389+harupy@users.noreply.github.com> * use html_permalinks Signed-off-by: harupy <17039389+harupy@users.noreply.github.com> * use bool Signed-off-by: harupy <17039389+harupy@users.noreply.github.com> * Use html_permalinks_icon Signed-off-by: harupy <17039389+harupy@users.noreply.github.com> Signed-off-by: Yiqing Wang <yiqing@wangemail.com>
…cript (mlflow#4363) * make sure docs build fails Signed-off-by: harupy <17039389+harupy@users.noreply.github.com> * use add_js_file Signed-off-by: harupy <17039389+harupy@users.noreply.github.com> * use html_permalinks Signed-off-by: harupy <17039389+harupy@users.noreply.github.com> * use bool Signed-off-by: harupy <17039389+harupy@users.noreply.github.com> * Use html_permalinks_icon Signed-off-by: harupy <17039389+harupy@users.noreply.github.com>
Signed-off-by: harupy 17039389+harupy@users.noreply.github.com
What changes are proposed in this pull request?
The current sphinx configuration script contains function or variables that no longer exist in the latest version of Sphinx (4.0.1). This PR replace them with valid ones.
https://app.circleci.com/pipelines/github/mlflow/mlflow/5602/workflows/f99cdd2b-109a-41a3-b43f-80d09af3ee97/jobs/7502
How is this patch tested?
Ensure the doc build successfully completes
Release Notes
Is this a user-facing change?
(Details in 1-2 sentences. You can just refer to another PR with a description if this PR is part of a larger change.)
What component(s), interfaces, languages, and integrations does this PR affect?
Components
area/artifacts
: Artifact stores and artifact loggingarea/build
: Build and test infrastructure for MLflowarea/docs
: MLflow documentation pagesarea/examples
: Example codearea/model-registry
: Model Registry service, APIs, and the fluent client calls for Model Registryarea/models
: MLmodel format, model serialization/deserialization, flavorsarea/projects
: MLproject format, project running backendsarea/scoring
: Local serving, model deployment tools, spark UDFsarea/server-infra
: MLflow server, JavaScript dev serverarea/tracking
: Tracking Service, tracking client APIs, autologgingInterface
area/uiux
: Front-end, user experience, JavaScript, plottingarea/docker
: Docker use across MLflow's components, such as MLflow Projects and MLflow Modelsarea/sqlalchemy
: Use of SQLAlchemy in the Tracking Service or Model Registryarea/windows
: Windows supportLanguage
language/r
: R APIs and clientslanguage/java
: Java APIs and clientslanguage/new
: Proposals for new client languagesIntegrations
integrations/azure
: Azure and Azure ML integrationsintegrations/sagemaker
: SageMaker integrationsintegrations/databricks
: Databricks integrationsHow should the PR be classified in the release notes? Choose one:
rn/breaking-change
- The PR will be mentioned in the "Breaking Changes" sectionrn/none
- No description will be included. The PR will be mentioned only by the PR number in the "Small Bugfixes and Documentation Updates" sectionrn/feature
- A new user-facing feature worth mentioning in the release notesrn/bug-fix
- A user-facing bug fix worth mentioning in the release notesrn/documentation
- A user-facing documentation change worth mentioning in the release notes