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

add settings.js to essential files #332

Merged
merged 1 commit into from
Apr 25, 2019

Conversation

QuietMisdreavus
Copy link
Member

Fixes #213, though all the existing settings.js files need to be loaded in separately. Can be deployed without updating rustdoc at the same time, since this file has been there for a while >_>

In rust-lang/rust#49954, rustdoc added a settings menu, which added the separate JavaScript file settings.js. This is a static file just like the other JS/CSS files bundled with rustdoc, but docs.rs never picked it up as an essential file.

A separate change will need to be made to rustdoc to use --static-root-path for this file, but this can at least let users begin using the settings page.

@QuietMisdreavus
Copy link
Member Author

CI failure looks spurious.

Centril added a commit to Centril/rust that referenced this pull request Apr 15, 2019
…h, r=GuillaumeGomez

rustdoc: use --static-root-path for settings.js

At the time i was writing rust-lang/docs.rs#332, i noticed that the `settings.js` file that was being loaded was not being loaded from the `--static-root-path`. This PR fixes that so that users on docs.rs can effectively cache this file.
Centril added a commit to Centril/rust that referenced this pull request Apr 16, 2019
…h, r=GuillaumeGomez

rustdoc: use --static-root-path for settings.js

At the time i was writing rust-lang/docs.rs#332, i noticed that the `settings.js` file that was being loaded was not being loaded from the `--static-root-path`. This PR fixes that so that users on docs.rs can effectively cache this file.
Centril added a commit to Centril/rust that referenced this pull request Apr 16, 2019
…h, r=GuillaumeGomez

rustdoc: use --static-root-path for settings.js

At the time i was writing rust-lang/docs.rs#332, i noticed that the `settings.js` file that was being loaded was not being loaded from the `--static-root-path`. This PR fixes that so that users on docs.rs can effectively cache this file.
@QuietMisdreavus QuietMisdreavus merged commit 46fa554 into rust-lang:master Apr 25, 2019
@QuietMisdreavus QuietMisdreavus deleted the new-files branch April 25, 2019 15:59
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.

Settings not working
1 participant