From 4aaf27782cd46b1236fd7f90501e1b873b0c20b8 Mon Sep 17 00:00:00 2001 From: Brian Ward Date: Wed, 11 Dec 2024 15:44:58 -0500 Subject: [PATCH 1/3] Update navbar in prep for new website --- src/_quarto.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/_quarto.yml b/src/_quarto.yml index b35c8c071..98a7e11c9 100644 --- a/src/_quarto.yml +++ b/src/_quarto.yml @@ -41,9 +41,10 @@ website: navbar: logo: "img/logo_tm.png" logo-alt: "Stan logo" + logo-href: https://mc-stan.org/ title: false left: - - text: "Overview" + - text: "Documentation" href: index.qmd - text: "Stan Users Guide" href: stan-users-guide/index.qmd From 3015a9c88821656631d40a01b19d8da03a26d934 Mon Sep 17 00:00:00 2001 From: Brian Ward Date: Wed, 18 Dec 2024 10:23:46 -0500 Subject: [PATCH 2/3] Move theming to common repo --- .gitmodules | 3 + Jenkinsfile | 2 +- generate_redirects.py | 34 --- src/_quarto.yml | 12 +- src/cmdstan-guide/_quarto.yml | 2 +- src/functions-reference/_quarto.yml | 2 +- src/quarto-config | 1 + src/reference-manual/_quarto.yml | 2 +- src/stan-users-guide/_quarto.yml | 2 +- src/theming/nord.theme | 182 ------------ src/theming/quarto_styles.css | 425 ---------------------------- src/theming/stan.xml | 154 ---------- src/theming/tango.theme | 207 -------------- src/theming/theme-colors.scss | 11 - src/theming/theme-dark.scss | 57 ---- src/theming/theme.scss | 27 -- 16 files changed, 15 insertions(+), 1108 deletions(-) create mode 100644 .gitmodules delete mode 100644 generate_redirects.py create mode 160000 src/quarto-config delete mode 100644 src/theming/nord.theme delete mode 100644 src/theming/quarto_styles.css delete mode 100644 src/theming/stan.xml delete mode 100644 src/theming/tango.theme delete mode 100644 src/theming/theme-colors.scss delete mode 100644 src/theming/theme-dark.scss delete mode 100644 src/theming/theme.scss diff --git a/.gitmodules b/.gitmodules new file mode 100644 index 000000000..4531c3001 --- /dev/null +++ b/.gitmodules @@ -0,0 +1,3 @@ +[submodule "src/quarto-config"] + path = src/quarto-config + url = https://github.com/stan-dev/quarto-config diff --git a/Jenkinsfile b/Jenkinsfile index fb25fd4e7..e8ad120df 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -59,7 +59,7 @@ pipeline { rm -rf ./docs/functions-reference ./docs/reference-manual ./docs/stan-users-guide/ ./docs/cmdstan-guide ./docs/img ./docs/site_libs cp -r ./docs/$major_version"_"$minor_version/* ./docs/ rm ./docs/*.pdf - python3 generate_redirects.py + python3 generate_redirects.py redirects.txt """ script { diff --git a/generate_redirects.py b/generate_redirects.py deleted file mode 100644 index 0131925d4..000000000 --- a/generate_redirects.py +++ /dev/null @@ -1,34 +0,0 @@ -import pathlib - -HERE = pathlib.Path(__file__).parent - -TEMPLATE = """ - - - Redirecting… - - - - -

Redirecting…

- Click here if you are not redirected. - -""" - -redirects = (HERE/'redirects.txt').read_text().strip() - -for line in redirects.split('\n'): - if line.startswith('#'): - continue - - FROM, TO = line.split() - content = TEMPLATE.format(REDIRECT_TO=TO) - - path = FROM.removeprefix("https://mc-stan.org/") - - file = HERE / path - if file.exists(): - print(f"Skipping {file} as it already exists") - continue - - file.write_text(content) diff --git a/src/_quarto.yml b/src/_quarto.yml index 98a7e11c9..a28afc850 100644 --- a/src/_quarto.yml +++ b/src/_quarto.yml @@ -266,16 +266,16 @@ website: format: html: theme: - light: [cosmo, theming/theme.scss] - dark: [cosmo, theming/theme-dark.scss] + light: [cosmo, quarto-config/theme.scss] + dark: [cosmo, quarto-config/theme-dark.scss] syntax-definitions: - - theming/stan.xml + - quarto-config/stan.xml highlight-style: - light: theming/tango.theme - dark: theming/nord.theme + light: quarto-config/tango.theme + dark: quarto-config/nord.theme code-copy: true code-overflow: wrap - css: theming/quarto_styles.css + css: quarto-config/quarto_styles.css toc: true grid: sidebar-width: 250px diff --git a/src/cmdstan-guide/_quarto.yml b/src/cmdstan-guide/_quarto.yml index a41c5931e..002599a38 100644 --- a/src/cmdstan-guide/_quarto.yml +++ b/src/cmdstan-guide/_quarto.yml @@ -19,7 +19,7 @@ format: include-in-header: "../header.tex" toc-title: "Table of Contents" syntax-definitions: - - ../theming/stan.xml + - ../quarto-config/stan.xml highlight-style: tango keep-tex: false colorlinks: true diff --git a/src/functions-reference/_quarto.yml b/src/functions-reference/_quarto.yml index 4c6fc3cfe..f3c4b0675 100644 --- a/src/functions-reference/_quarto.yml +++ b/src/functions-reference/_quarto.yml @@ -19,7 +19,7 @@ format: include-after-body: "../postamble.tex" toc-title: "Table of Contents" syntax-definitions: - - ../theming/stan.xml + - ../quarto-config/stan.xml keep-tex: false highlight-style: tango colorlinks: true diff --git a/src/quarto-config b/src/quarto-config new file mode 160000 index 000000000..153683849 --- /dev/null +++ b/src/quarto-config @@ -0,0 +1 @@ +Subproject commit 15368384957e72bf21cc414ef2373c5f4616db47 diff --git a/src/reference-manual/_quarto.yml b/src/reference-manual/_quarto.yml index cf4afa6c5..889680338 100644 --- a/src/reference-manual/_quarto.yml +++ b/src/reference-manual/_quarto.yml @@ -20,7 +20,7 @@ format: toc-title: "Table of Contents" highlight-style: tango syntax-definitions: - - ../theming/stan.xml + - ../quarto-config/stan.xml keep-tex: false colorlinks: true linkcolor: darkblue diff --git a/src/stan-users-guide/_quarto.yml b/src/stan-users-guide/_quarto.yml index 8d694d10e..951012f3d 100644 --- a/src/stan-users-guide/_quarto.yml +++ b/src/stan-users-guide/_quarto.yml @@ -19,7 +19,7 @@ format: include-in-header: "../header.tex" toc-title: "Table of Contents" syntax-definitions: - - ../theming/stan.xml + - ../quarto-config/stan.xml highlight-style: tango keep-tex: false colorlinks: true diff --git a/src/theming/nord.theme b/src/theming/nord.theme deleted file mode 100644 index 193f9846c..000000000 --- a/src/theming/nord.theme +++ /dev/null @@ -1,182 +0,0 @@ -{ - "_comments": [ - "Last update: Sep 21, 2020 (revision 2)", - "This theme has been adapted from: https://www.nordtheme.com" - ], - "metadata": { - "copyright": [ - "SPDX-FileCopyrightText: 2016 Arctic Ice Studio ", - "SPDX-FileCopyrightText: 2016 Sven Greb ", - "SPDX-FileCopyrightText: 2020 Nibaldo González " - ], - "license": "SPDX-License-Identifier: MIT", - "name": "Nord", - "revision": 2 - }, - "editor-colors": { - "BackgroundColor": "#2e3440", - "BracketMatching": "#4c566a", - "CodeFolding": "#434c5e", - "CurrentLine": "#3b4252", - "CurrentLineNumber": "#616e88", - "IconBorder": "#2e3440", - "IndentationLine": "#434c5e", - "LineNumbers": "#4c566a", - "MarkBookmark": "#55749a", - "MarkBreakpointActive": "#79aab9", - "MarkBreakpointDisabled": "#b48ead", - "MarkBreakpointReached": "#91a97e", - "MarkError": "#a95862", - "MarkExecution": "#4c566a", - "MarkWarning": "#d0b47d", - "ModifiedLines": "#ebcb8b", - "ReplaceHighlight": "#8e6057", - "SavedLines": "#a3be8c", - "SearchHighlight": "#5f8491", - "Separator": "#3b4252", - "SpellChecking": "#bf616a", - "TabMarker": "#3e4656", - "TemplateBackground": "#3b4252", - "TemplateFocusedPlaceholder": "#81a1c1", - "TemplatePlaceholder": "#5e81ac", - "TemplateReadOnlyPlaceholder": "#4c566a", - "TextSelection": "#4c566a", - "WordWrapMarker": "#3f4859" - }, - "background-color": "#2e3440", - "text-styles": { - "Alert": { - "background-color": "#3b4252", - "bold": true, - "selected-text-color": "#bf616a", - "text-color": "#bf616a" - }, - "Annotation": { - "selected-text-color": "#d08770", - "text-color": "#d08770" - }, - "Attribute": { - "selected-text-color": "#8fbcbb", - "text-color": "#8fbcbb" - }, - "BaseN": { - "selected-text-color": "#b48ead", - "text-color": "#b48ead" - }, - "BuiltIn": { - "italic": true, - "selected-text-color": "#88c0d0", - "text-color": "#88c0d0" - }, - "Char": { - "selected-text-color": "#ebcb8b", - "text-color": "#ebcb8b" - }, - "Comment": { - "selected-text-color": "#616e88", - "text-color": "#616e88" - }, - "CommentVar": { - "selected-text-color": "#e5e9f0", - "text-color": "#e5e9f0" - }, - "Constant": { - "bold": true, - "selected-text-color": "#eceff4", - "text-color": "#eceff4" - }, - "ControlFlow": { - "bold": true, - "selected-text-color": "#81a1c1", - "text-color": "#81a1c1" - }, - "DataType": { - "selected-text-color": "#81a1c1", - "text-color": "#81a1c1" - }, - "DecVal": { - "selected-text-color": "#b48ead", - "text-color": "#b48ead" - }, - "Documentation": { - "selected-text-color": "#5e81ac", - "text-color": "#5e81ac" - }, - "Error": { - "selected-text-color": "#bf616a", - "text-color": "#bf616a", - "underline": true - }, - "Extension": { - "bold": true, - "selected-text-color": "#8fbcbb", - "text-color": "#8fbcbb" - }, - "Float": { - "selected-text-color": "#b48ead", - "text-color": "#b48ead" - }, - "Function": { - "selected-text-color": "#88c0d0", - "text-color": "#88c0d0" - }, - "Import": { - "selected-text-color": "#a3be8c", - "text-color": "#a3be8c" - }, - "Information": { - "selected-text-color": "#ebcb8b", - "text-color": "#ebcb8b" - }, - "Keyword": { - "bold": true, - "selected-text-color": "#81a1c1", - "text-color": "#81a1c1" - }, - "Normal": { - "selected-text-color": "#d8dee9", - "text-color": "#d8dee9" - }, - "Operator": { - "selected-text-color": "#81a1c1", - "text-color": "#81a1c1" - }, - "Others": { - "selected-text-color": "#8fbcbb", - "text-color": "#8fbcbb" - }, - "Preprocessor": { - "selected-text-color": "#5e81ac", - "text-color": "#5e81ac" - }, - "RegionMarker": { - "background-color": "#3b4252", - "selected-text-color": "#88c0d0", - "text-color": "#88c0d0" - }, - "SpecialChar": { - "selected-text-color": "#ebcb8b", - "text-color": "#ebcb8b" - }, - "SpecialString": { - "selected-text-color": "#d08770", - "text-color": "#d08770" - }, - "String": { - "selected-text-color": "#a3be8c", - "text-color": "#a3be8c" - }, - "Variable": { - "selected-text-color": "#5e81ac", - "text-color": "#5e81ac" - }, - "VerbatimString": { - "selected-text-color": "#a3be8c", - "text-color": "#a3be8c" - }, - "Warning": { - "selected-text-color": "#bf616a", - "text-color": "#bf616a" - } - } -} diff --git a/src/theming/quarto_styles.css b/src/theming/quarto_styles.css deleted file mode 100644 index 1332dacc1..000000000 --- a/src/theming/quarto_styles.css +++ /dev/null @@ -1,425 +0,0 @@ -/* quarto website styling */ - -@media (min-width: 1020px) { -.navbar-brand-container { - margin-right: 1em; -} -} - -@media (max-width: 1060px) and (min-width: 991.98px) { - -#navbarCollapse ul:last-of-type a.nav-link { - padding-left: .25em; - padding-right: .25em; -} - -.navbar #quarto-search { - margin-left: .1em; -} -} - -html { - scroll-padding-top: 70px; /* height of header */ -} - -@media (min-width: 991.98px) { -#quarto-header { - border-bottom: 1px solid -} -} - -.navbar-brand > img { - max-height: 36px; -} - -.platform-table td { - vertical-align: middle; -} - -.platform-table td > div.sourceCode { - margin-top: 0.3rem; - margin-bottom: 0.3rem; -} - -.document-example { - opacity: 0.9; - padding: 6px; - font-weight: 500; - margin-bottom: 1rem; -} - -.document-example div { - padding: 5px; -} - -.document-example .citation { - color: var(--stan-secondary); -} - -.trademark { - font-size: 0.6rem; - display: inline-block; - margin-left: -3px; -} - -.search-attribution { - margin-top: 20px; - padding-bottom: 20px; - height: 40px; -} - -.download-button { - margin-top: 1em; -} - -.download-table { - margin-bottom: 2em; -} - -.download-table p { - margin-bottom: 0; -} - -.download-table .checksum { - color: var(--bs-primary); - font-size: .775em; - cursor: pointer; - padding-top: 4px; -} - -.download-button { - display:flex; - padding-bottom: 10px; - padding-top: 10px; -} - -.download-button .secondary { - font-size: .775em; - margin-bottom: 0; -} - -.download-button .container { - display: flex; - padding-left: 10px; - padding-right: 40px; -} - -.download-button .icon-container { - fill: white; - width: 30px; - margin-right: 15px; -} - -iframe.reveal-demo { - width: 100%; - height: 350px; - outline: none; -} - -.slide-deck { - border: 3px solid #dee2e6; - width: 100%; - height: 475px; -} - -@media only screen and (max-width: 600px) { - .slide-deck { - height: 400px; - } -} - -@media (max-width: 575px) { -.link-cards .card { - margin-bottom: 20px; - margin-right: 35px; -} - -} - -@media (min-width: 576px) { -.link-cards { - display: flex; - flex-direction: row; - flex-wrap: wrap; -} - -.link-cards .card { - width: 190px; - margin: 0 20px 12px 0; -} - - -} - -.link-cards .card { - border: none; - padding: 0; -} - -.link-cards .card-title h4 { - margin-top: 0; -} - -.link-cards .card-title p { - margin-bottom: 0; -} - -.link-cards .card-subtitle { - margin-bottom: 0.7rem; -} - -.link-cards .card-body { - padding: 0.5rem; - padding-left: 0.1rem; -} - -.link-cards .card-body ul { - margin-bottom: 0; - padding-left: 0; - list-style-type: none; -} - -.link-cards .card-body ul a { - text-decoration: none; -} - -.link-cards .card-body ul li { - padding-bottom: 0.2rem; -} - -.card .source-code { - margin-top: 3px; -} - -.carousel.card { - font-size: 16px; - padding-top: 2em; -} - -.carousel.card a { - text-decoration: none; -} - -.carousel img { - width: 70%; - margin-bottom: 110px; -} - -.carousel .carousel-control-prev-icon, -.carousel .carousel-control-next-icon { - margin-bottom: 110px; -} - -.gallery-category { - column-gap: 10px; -} - -.btn-action-primary { - color: var(--stan-bg); - background-color: var(--stan-secondary) !important; -} - -.btn-action-primary:hover { - color: white; -} - -.btn-action { - min-width: 165px; - border-radius: 30px; - border: none; -} - -.panel-tabset[data-group="tools-tabset"] .choose-your-tool { - max-width: 90px; - margin-right: 25px; - margin-top: 30px; - font-weight: 300; - font-size: 1.3rem; - text-align: left; - vertical-align: center; -} - -.panel-tabset[data-group="tools-tabset"] .tab-content { - border: none; - padding-left: 5px; -} - -.panel-tabset[data-group="tools-tabset"] .nav-tabs { - border-bottom: none; -} - -.panel-tabset[data-group="tools-tabset"] .nav-tabs .nav-link { - text-align: center; - margin-right: 10px; - margin-top: 10px; - color: inherit; - width: 102px; - font-size: 0.8em; -} - -.panel-tabset[data-group="tools-tabset"] .nav-tabs .nav-link, -.panel-tabset[data-group="tools-tabset"] .nav-tabs .nav-link.active, -.panel-tabset[data-group="tools-tabset"] .nav-tabs .nav-item.show .nav-link { - border: 1px solid var(--stan-highlight); - border-radius: 10px; -} -.panel-tabset[data-group="tools-tabset"] .nav-tabs .nav-link:hover { - border-color: var(--stan-secondary); - border-width: 1px; -} - -.panel-tabset[data-group="tools-tabset"] .nav-tabs .nav-link.active, -.panel-tabset[data-group="tools-tabset"] .nav-tabs .nav-item.show .nav-link { - border-color: var(--stan-secondary); - border-width: 2px; -} - -.panel-tabset[data-group="tools-tabset"] .nav-tabs .nav-link img { - width: 65px; - height: 65px; - display: block; - margin-bottom: 2px; -} - -.download-text { - font-size: 1.1em; - font-weight: 500; -} - -.preview-image-grid { - gap: .75em; -} - -.preview-image-grid p { - margin-bottom: 0; -} - -.preview-image-label { - text-align: center; - font-size: .75em; - font-weight: 600; -} - -.illustration { - border: 1px solid #dee2e6; -} - -/* stan-dev custom styling */ - -a { color: var(--stan-secondary);} -a.nav-link.active { color: var(--stan-secondary);} -a.sidebar-item-text.sidebar-link.active { color: var(--stan-secondary); } -.sidebar.a.active { color: var(--stan-secondary); } - -div [data-bs-target^="#quarto-sidebar-section"] { - font-weight: bold; - font-style: italic; - color: var(--stan-secondary); -} - -p.big-top { - margin-top: 2em; -} - -code { - white-space: inherit; - color: var(--bs-dark-warm); - background-color: var(--stan-bg); -} - -code:not(.sourceCode) { - color: var(--bs-dark-warm); - background-color: var(--stan-bg); -} - -p code { - white-space: inherit; - color: var(--bs-dark-warm); - background-color: var(--stan-bg); -} - -p code:not(.sourceCode) { - color: var(--bs-dark-warm); - background-color: var(--stan-bg); -} - -li code:not(.sourceCode) { - color: var(--bs-dark-warm); - background-color: var(--stan-bg); -} - -td code:not(.sourceCode) { - color: var(--bs-dark-warm); - background-color: var(--stan-bg); -} - -pre { - word-break: normal; - word-wrap: normal; - color: var(--bs-dark-warm); - background-color: var(--stan-bg); -} -pre code { - white-space: inherit; - margin: 0; - padding: 0; - color: var(--bs-dark-warm); - background-color: var(--stan-bg); -} - -pre.sourceCode { - white-space: inherit; - margin: 0; - padding: 0; - color: var(--bs-dark-warm); - background-color: var(--stan-bg); -} - -#quarto-appendix { - color: var(--bs-dark-warm); - background-color: var(--stan-bg); -} - -.align-equations { - text-align: left; - margin-left: 2em; /* Adjust as needed */ -} - -.book .book-body .page-wrapper .page-inner section.normal pre { - font-family: "Lucida Console", Monaco, Menlo, monospaced; - margin-left: 2em; - margin-below: 0.6em; - margin-above: -0.3em; - padding: 0; -} - -.sidebar.sidebar-navigation>* { - padding-top: 0em; -} - - -#quarto-sidebar > div.sidebar-menu-container > ul > li:nth-child(1) > div > a > span { - font-weight: bold; - font-style: italic; - font-size: 1.3em; - color: var(--stan-secondary); - margin-above: -20em; - padding: 0; -} - -.index-container { - display: flex; - flex-flow: row nowrap; - align-items: flex-end; - justify-content: space-between; -} - -a.unlink { - color: inherit; - text-decoration: none; -} - -span.detail { - font-size: small; - color: var(--quarto-text-muted); -} diff --git a/src/theming/stan.xml b/src/theming/stan.xml deleted file mode 100644 index afbea30c9..000000000 --- a/src/theming/stan.xml +++ /dev/null @@ -1,154 +0,0 @@ - - - - - - break - continue - else - for - if - in - return - while - profile - - - reject - fatal_error - print - integrate_ode - integrate_ode_bdf - integrate_ode_rk45 - algebra_solver - - - lower - upper - offset - multiplier - int - real - vector - complex - ordered - positive_ordered - simplex - unit_vector - sum_to_zero_vector - column_stochastic_matrix - row_stochastic_matrix - row_vector - matrix - array - tuple - cholesky_factor_corr - cholesky_factor_cov - corr_matrix - cov_matrix - void - complex_matrix - complex_vector - complex_row_vector - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/src/theming/tango.theme b/src/theming/tango.theme deleted file mode 100644 index 178110eb5..000000000 --- a/src/theming/tango.theme +++ /dev/null @@ -1,207 +0,0 @@ -{ - "_comments": [ - "generated with `quarto pandoc --print-highlight-style tango 2> tango.theme`" - ], - "text-color": null, - "background-color": "#f8f8f8", - "line-number-color": "#aaaaaa", - "line-number-background-color": null, - "text-styles": { - "Alert": { - "text-color": "#ef2929", - "background-color": null, - "bold": false, - "italic": false, - "underline": false - }, - "Annotation": { - "text-color": "#8f5902", - "background-color": null, - "bold": true, - "italic": true, - "underline": false - }, - "Attribute": { - "text-color": "#204a87", - "background-color": null, - "bold": false, - "italic": false, - "underline": false - }, - "BaseN": { - "text-color": "#0000cf", - "background-color": null, - "bold": false, - "italic": false, - "underline": false - }, - "Char": { - "text-color": "#4e9a06", - "background-color": null, - "bold": false, - "italic": false, - "underline": false - }, - "Comment": { - "text-color": "#8f5902", - "background-color": null, - "bold": false, - "italic": true, - "underline": false - }, - "CommentVar": { - "text-color": "#8f5902", - "background-color": null, - "bold": true, - "italic": true, - "underline": false - }, - "Constant": { - "text-color": "#8f5902", - "background-color": null, - "bold": false, - "italic": false, - "underline": false - }, - "ControlFlow": { - "text-color": "#204a87", - "background-color": null, - "bold": true, - "italic": false, - "underline": false - }, - "DataType": { - "text-color": "#204a87", - "background-color": null, - "bold": false, - "italic": false, - "underline": false - }, - "DecVal": { - "text-color": "#0000cf", - "background-color": null, - "bold": false, - "italic": false, - "underline": false - }, - "Documentation": { - "text-color": "#8f5902", - "background-color": null, - "bold": true, - "italic": true, - "underline": false - }, - "Error": { - "text-color": "#a40000", - "background-color": null, - "bold": true, - "italic": false, - "underline": false - }, - "Extension": { - "text-color": null, - "background-color": null, - "bold": false, - "italic": false, - "underline": false - }, - "Float": { - "text-color": "#0000cf", - "background-color": null, - "bold": false, - "italic": false, - "underline": false - }, - "Function": { - "text-color": "#204a87", - "background-color": null, - "bold": true, - "italic": false, - "underline": false - }, - "Import": { - "text-color": null, - "background-color": null, - "bold": false, - "italic": false, - "underline": false - }, - "Information": { - "text-color": "#8f5902", - "background-color": null, - "bold": true, - "italic": true, - "underline": false - }, - "Keyword": { - "text-color": "#204a87", - "background-color": null, - "bold": true, - "italic": false, - "underline": false - }, - "Operator": { - "text-color": "#ce5c00", - "background-color": null, - "bold": true, - "italic": false, - "underline": false - }, - "Other": { - "text-color": "#8f5902", - "background-color": null, - "bold": false, - "italic": false, - "underline": false - }, - "Preprocessor": { - "text-color": "#8f5902", - "background-color": null, - "bold": false, - "italic": true, - "underline": false - }, - "SpecialChar": { - "text-color": "#ce5c00", - "background-color": null, - "bold": true, - "italic": false, - "underline": false - }, - "SpecialString": { - "text-color": "#4e9a06", - "background-color": null, - "bold": false, - "italic": false, - "underline": false - }, - "String": { - "text-color": "#4e9a06", - "background-color": null, - "bold": false, - "italic": false, - "underline": false - }, - "Variable": { - "text-color": "#000000", - "background-color": null, - "bold": false, - "italic": false, - "underline": false - }, - "VerbatimString": { - "text-color": "#4e9a06", - "background-color": null, - "bold": false, - "italic": false, - "underline": false - }, - "Warning": { - "text-color": "#8f5902", - "background-color": null, - "bold": true, - "italic": true, - "underline": false - } - } -} diff --git a/src/theming/theme-colors.scss b/src/theming/theme-colors.scss deleted file mode 100644 index a6384bcfc..000000000 --- a/src/theming/theme-colors.scss +++ /dev/null @@ -1,11 +0,0 @@ -/*-- scss:defaults --*/ - - -$warm-beige: #F2E5BD; -$palest-beige: #FEFCF9; -$aquatic-blue: #3E8EBC; -$navy-blue: #052744; -$warm-gray: #053A42; - -$pale-aquatic-blue: #AED1E4; -$off-white: #FAF1E4; diff --git a/src/theming/theme-dark.scss b/src/theming/theme-dark.scss deleted file mode 100644 index 20230c7f9..000000000 --- a/src/theming/theme-dark.scss +++ /dev/null @@ -1,57 +0,0 @@ -/*-- scss:defaults --*/ - - -@import "theme-colors"; - - -// Base document colors -$body-bg: #181818; -$body-color: $off-white; -$link-color: $pale-aquatic-blue; - -$light: #525252; - -// Navigation element colors -$footer-bg: #181818; -$navbar-bg: #303030; - - -// Code blocks -$code-block-bg-alpha: -.8; - -// Bootstrap popovers -$popover-bg: #242424; - -// Bootstrap inputs -$input-bg: #242424; -$dropdown-bg: $body-bg; -$dropdown-color: $body-color; -$dropdown-link-color: $body-color; -$dropdown-link-hover-bg: $gray-600; -$dropdown-link-hover-color: $off-white; - -$quarto-body-bg: $body-bg; -$quarto-body-color: $body-color; -$bs-body-bg: $body-bg; -$bs-body-color: $body-color; - - -$bs-dark-warm: $palest-beige; - - -$sidebar-bg: #353535; -$sidebar-fg: $off-white; - -// re-export the colors as CSS variables -:root { - --stan-bg: #242424; - --stan-highlight: #{$warm-gray}; - --stan-secondary: #{$pale-aquatic-blue}; -} - - -/*-- scss:rules --*/ - -.layout-example { - background: $gray-700; - } diff --git a/src/theming/theme.scss b/src/theming/theme.scss deleted file mode 100644 index f98b5745b..000000000 --- a/src/theming/theme.scss +++ /dev/null @@ -1,27 +0,0 @@ -/*-- scss:defaults --*/ - -@import "theme-colors"; - -$old-quarto-body-bg: #FEFBF2; -$body-bg: #FEFBF2; - -$quarto-body-color: $navy-blue; -$quarto-text-muted: $warm-gray; - -$bs-body-color: $navy-blue; -$bs-dark: $navy-blue; -$bs-dark-warm: $warm-gray; - -$navbar-fg: $warm-beige; -$navbar-bg: $navy-blue; -$sidebar-bg: $palest-beige; -$sidebar-fg: $navy-blue; - - - -// re-export the colors as CSS variables -:root { - --stan-bg: #{$palest-beige}; - --stan-highlight: #{$warm-beige}; - --stan-secondary: #{$aquatic-blue}; -} From b087184a34b51a20d5a8e1b76d19ab7357207574 Mon Sep 17 00:00:00 2001 From: Brian Ward Date: Wed, 18 Dec 2024 10:35:02 -0500 Subject: [PATCH 3/3] Update jenkinsfile --- Jenkinsfile | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index e8ad120df..1997f383d 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -34,9 +34,9 @@ pipeline { steps{ checkout([$class: 'GitSCM', branches: [[name: '*/master']], - doGenerateSubmoduleConfigurations: false, - extensions: [], - submoduleCfg: [], + extensions: [ + submodules: [recursiveSubmodules: true] + ], userRemoteConfigs: [[url: "https://github.com/stan-dev/docs.git", credentialsId: 'a630aebc-6861-4e69-b497-fd7f496ec46b']]] ) @@ -59,7 +59,7 @@ pipeline { rm -rf ./docs/functions-reference ./docs/reference-manual ./docs/stan-users-guide/ ./docs/cmdstan-guide ./docs/img ./docs/site_libs cp -r ./docs/$major_version"_"$minor_version/* ./docs/ rm ./docs/*.pdf - python3 generate_redirects.py redirects.txt + python3 src/quarto-config/generate_redirects.py redirects.txt --output_dir=. """ script {