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

[REVIEW] Centralize common css & js code in docs #2472

Merged
merged 11 commits into from
Aug 2, 2022
Merged
Show file tree
Hide file tree
Changes from 7 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion cpp/doxygen/Doxyfile
Original file line number Diff line number Diff line change
Expand Up @@ -1105,7 +1105,7 @@ HTML_HEADER =
# that doxygen normally uses.
# This tag requires that the tag GENERATE_HTML is set to YES.

HTML_FOOTER =
HTML_FOOTER = footer.html

# The HTML_STYLESHEET tag can be used to specify a user-defined cascading style
# sheet that is used by each HTML page. It can be used to fine-tune the look of
Expand Down
4 changes: 4 additions & 0 deletions cpp/doxygen/footer.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
<!-- Copyright (c) 2022, NVIDIA CORPORATION. -->

<script src="https://docs.rapids.ai/assets/js/custom.js"></script>
<link rel="stylesheet" href="https://docs.rapids.ai/assets/css/custom.css">
22 changes: 0 additions & 22 deletions docs/cugraph/source/_static/custom.js

This file was deleted.

89 changes: 0 additions & 89 deletions docs/cugraph/source/_static/custom_styles.css

This file was deleted.

6 changes: 3 additions & 3 deletions docs/cugraph/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -212,9 +212,9 @@


def setup(app):
app.add_css_file('custom_styles.css')
app.add_js_file('custom.js')
app.add_css_file('references.css')
app.add_css_file("https://docs.rapids.ai/assets/css/custom.css")
app.add_js_file("https://docs.rapids.ai/assets/js/custom.js")
app.add_css_file("references.css")


source_suffix = ['.rst', '.md']
Expand Down