mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-26 10:11:46 +00:00
Fix #4318. Theme docs to match website branding and add edit button, footer links, and icons.
This commit is contained in:
+28
-5
@@ -1,12 +1,35 @@
|
|||||||
|
@import url("https://fonts.googleapis.com/css2?family=Nunito:wght@200;300;400;500;600;700;800&display=swap");
|
||||||
|
@import url('https://fonts.googleapis.com/css2?family=Inconsolata:wght@200;300;400;500;600;700&display=swap');
|
||||||
|
h1, h2, h3, h4 {
|
||||||
|
font-weight: normal;
|
||||||
|
color: #7cbf33;
|
||||||
|
background: -webkit-linear-gradient(0deg, #7cbf33, #049344);
|
||||||
|
background-clip: border-box;
|
||||||
|
-webkit-background-clip: text;
|
||||||
|
-webkit-text-fill-color: transparent;
|
||||||
|
}
|
||||||
|
.sidebar-brand-text {
|
||||||
|
font-size: 1rem;
|
||||||
|
}
|
||||||
.blockbutton {
|
.blockbutton {
|
||||||
border: 1px solid var(--color-admonition-title--seealso);
|
|
||||||
background-color: var(--color-admonition-title-background--seealso);
|
|
||||||
padding: 5px;
|
|
||||||
text-align: center;
|
|
||||||
border-radius: 5px;
|
|
||||||
max-width: 500px;
|
max-width: 500px;
|
||||||
margin-left: auto;
|
margin-left: auto;
|
||||||
margin-right: auto;
|
margin-right: auto;
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
.blockbutton a {
|
||||||
|
display: block;
|
||||||
|
padding-top: 15px;
|
||||||
|
padding-bottom: 15px;
|
||||||
|
border-radius: 5px;
|
||||||
|
background: #40b74c;
|
||||||
|
width: 100%;
|
||||||
|
height: 100%;
|
||||||
|
color: #fff;
|
||||||
|
text-decoration: none;
|
||||||
|
}
|
||||||
|
.blockbutton a:hover {
|
||||||
|
background: #70ba35;
|
||||||
}
|
}
|
||||||
section img {
|
section img {
|
||||||
display: block;
|
display: block;
|
||||||
|
|||||||
@@ -36,7 +36,7 @@
|
|||||||
# -- Project information -----------------------------------------------------
|
# -- Project information -----------------------------------------------------
|
||||||
|
|
||||||
project = "BlenderBIM Add-on"
|
project = "BlenderBIM Add-on"
|
||||||
copyright = "2020-2023 IfcOpenShell Contributors"
|
copyright = "2020-2024 IfcOpenShell Contributors"
|
||||||
author = "IfcOpenShell Contributors"
|
author = "IfcOpenShell Contributors"
|
||||||
|
|
||||||
# The full version, including alpha/beta/rc tags
|
# The full version, including alpha/beta/rc tags
|
||||||
@@ -48,7 +48,7 @@ release = "0.0.231104"
|
|||||||
# Add any Sphinx extension module names here, as strings. They can be
|
# Add any Sphinx extension module names here, as strings. They can be
|
||||||
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
|
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
|
||||||
# ones.
|
# ones.
|
||||||
extensions = ["sphinx.ext.autodoc", "sphinx.ext.autosectionlabel"]
|
extensions = ["sphinx.ext.autodoc", "sphinx.ext.autosectionlabel", "sphinx_copybutton"]
|
||||||
|
|
||||||
# Auto add document prefixes to help guarantee uniqueness of automatic section references.
|
# Auto add document prefixes to help guarantee uniqueness of automatic section references.
|
||||||
autosectionlabel_prefix_document = True
|
autosectionlabel_prefix_document = True
|
||||||
@@ -75,3 +75,56 @@ html_theme = "furo"
|
|||||||
html_static_path = ["_static"]
|
html_static_path = ["_static"]
|
||||||
|
|
||||||
html_css_files = ["custom.css"]
|
html_css_files = ["custom.css"]
|
||||||
|
|
||||||
|
# Code block styles. Dark styling helps important code examples "pop" on the
|
||||||
|
# page even on light themes.
|
||||||
|
pygments_style = "one-dark"
|
||||||
|
pygments_dark_style = "one-dark"
|
||||||
|
|
||||||
|
html_logo = "https://blenderbim.org/assets/images/blender/blender-logo.png"
|
||||||
|
html_theme_options = {
|
||||||
|
"source_repository": "https://github.com/IfcOpenShell/IfcOpenShell/",
|
||||||
|
"source_branch": "v0.7.0",
|
||||||
|
"source_directory": "src/blenderbim/docs/",
|
||||||
|
"light_css_variables": {
|
||||||
|
"color-brand-primary": "#39b54a",
|
||||||
|
"color-brand-content": "#39b54a",
|
||||||
|
"color-brand-visited": "#d9e021",
|
||||||
|
"color-background-primary": "#f7f7f6",
|
||||||
|
"color-background-secondary": "#eeeeec",
|
||||||
|
"color-background-border": "#cfd0cb",
|
||||||
|
"color-foreground-primary": "#2e3436",
|
||||||
|
"font-stack": "Nunito, -apple-system, BlinkMacSystemFont, Segoe UI, Helvetica, Arial, sans-serif, Apple Color Emoji, Segoe UI Emoji"
|
||||||
|
},
|
||||||
|
"dark_css_variables": {
|
||||||
|
"color-brand-primary": "#39b54a",
|
||||||
|
"color-brand-content": "#39b54a",
|
||||||
|
"color-brand-visited": "#d9e021",
|
||||||
|
# "color-background-primary": "#f7f7f6",
|
||||||
|
"color-background-primary": "#2e3436",
|
||||||
|
"color-background-border": "#2e3436",
|
||||||
|
"color-foreground-primary": "#eeeeec",
|
||||||
|
"font-stack": "Nunito, -apple-system, BlinkMacSystemFont, Segoe UI, Helvetica, Arial, sans-serif, Apple Color Emoji, Segoe UI Emoji"
|
||||||
|
},
|
||||||
|
|
||||||
|
"footer_icons": [
|
||||||
|
{
|
||||||
|
"name": "IfcOpenShell",
|
||||||
|
"url": "https://ifcopenshell.org",
|
||||||
|
"html": """
|
||||||
|
<img src="https://ifcopenshell.org/assets/images/logo.png" style="width: auto;" />
|
||||||
|
""",
|
||||||
|
"class": "",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "GitHub",
|
||||||
|
"url": "https://github.com/IfcOpenShell/IfcOpenShell/tree/v0.7.0/src/blenderbim/docs",
|
||||||
|
"html": """
|
||||||
|
<svg stroke="currentColor" fill="currentColor" stroke-width="0" viewBox="0 0 16 16">
|
||||||
|
<path fill-rule="evenodd" d="M8 0C3.58 0 0 3.58 0 8c0 3.54 2.29 6.53 5.47 7.59.4.07.55-.17.55-.38 0-.19-.01-.82-.01-1.49-2.01.37-2.53-.49-2.69-.94-.09-.23-.48-.94-.82-1.13-.28-.15-.68-.52-.01-.53.63-.01 1.08.58 1.23.82.72 1.21 1.87.87 2.33.66.07-.52.28-.87.51-1.07-1.78-.2-3.64-.89-3.64-3.95 0-.87.31-1.59.82-2.15-.08-.2-.36-1.02.08-2.12 0 0 .67-.21 2.2.82.64-.18 1.32-.27 2-.27.68 0 1.36.09 2 .27 1.53-1.04 2.2-.82 2.2-.82.44 1.1.16 1.92.08 2.12.51.56.82 1.27.82 2.15 0 3.07-1.87 3.75-3.65 3.95.29.25.54.73.54 1.48 0 1.07-.01 1.93-.01 2.2 0 .21.15.46.55.38A8.013 8.013 0 0 0 16 8c0-4.42-3.58-8-8-8z"></path>
|
||||||
|
</svg>
|
||||||
|
""",
|
||||||
|
"class": "",
|
||||||
|
},
|
||||||
|
],
|
||||||
|
}
|
||||||
|
|||||||
+28
-5
@@ -1,12 +1,35 @@
|
|||||||
|
@import url("https://fonts.googleapis.com/css2?family=Nunito:wght@200;300;400;500;600;700;800&display=swap");
|
||||||
|
@import url('https://fonts.googleapis.com/css2?family=Inconsolata:wght@200;300;400;500;600;700&display=swap');
|
||||||
|
h1, h2, h3, h4 {
|
||||||
|
font-weight: normal;
|
||||||
|
color: #7cbf33;
|
||||||
|
background: -webkit-linear-gradient(0deg, #7cbf33, #049344);
|
||||||
|
background-clip: border-box;
|
||||||
|
-webkit-background-clip: text;
|
||||||
|
-webkit-text-fill-color: transparent;
|
||||||
|
}
|
||||||
|
.sidebar-brand-text {
|
||||||
|
font-size: 1rem;
|
||||||
|
}
|
||||||
.blockbutton {
|
.blockbutton {
|
||||||
border: 1px solid var(--color-admonition-title--seealso);
|
|
||||||
background-color: var(--color-admonition-title-background--seealso);
|
|
||||||
padding: 5px;
|
|
||||||
text-align: center;
|
|
||||||
border-radius: 5px;
|
|
||||||
max-width: 500px;
|
max-width: 500px;
|
||||||
margin-left: auto;
|
margin-left: auto;
|
||||||
margin-right: auto;
|
margin-right: auto;
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
.blockbutton a {
|
||||||
|
display: block;
|
||||||
|
padding-top: 15px;
|
||||||
|
padding-bottom: 15px;
|
||||||
|
border-radius: 5px;
|
||||||
|
background: #40b74c;
|
||||||
|
width: 100%;
|
||||||
|
height: 100%;
|
||||||
|
color: #fff;
|
||||||
|
text-decoration: none;
|
||||||
|
}
|
||||||
|
.blockbutton a:hover {
|
||||||
|
background: #70ba35;
|
||||||
}
|
}
|
||||||
section img {
|
section img {
|
||||||
display: block;
|
display: block;
|
||||||
|
|||||||
@@ -1,20 +1,20 @@
|
|||||||
# BlenderBIM Add-on - OpenBIM Blender Add-on
|
# IfcOpenShell - IFC toolkit and geometry engine
|
||||||
# Copyright (C) 2020, 2021 Dion Moult <dion@thinkmoult.com>
|
# Copyright (C) 2020-2024 Dion Moult <dion@thinkmoult.com>
|
||||||
#
|
#
|
||||||
# This file is part of BlenderBIM Add-on.
|
# This file is part of IfcOpenShell.
|
||||||
#
|
#
|
||||||
# BlenderBIM Add-on is free software: you can redistribute it and/or modify
|
# IfcOpenShell is free software: you can redistribute it and/or modify
|
||||||
# it under the terms of the GNU General Public License as published by
|
# it under the terms of the GNU Lesser General Public License as published by
|
||||||
# the Free Software Foundation, either version 3 of the License, or
|
# the Free Software Foundation, either version 3 of the License, or
|
||||||
# (at your option) any later version.
|
# (at your option) any later version.
|
||||||
#
|
#
|
||||||
# BlenderBIM Add-on is distributed in the hope that it will be useful,
|
# IfcOpenShell is distributed in the hope that it will be useful,
|
||||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
# GNU General Public License for more details.
|
# GNU Lesser General Public License for more details.
|
||||||
#
|
#
|
||||||
# You should have received a copy of the GNU General Public License
|
# You should have received a copy of the GNU Lesser General Public License
|
||||||
# along with BlenderBIM Add-on. If not, see <http://www.gnu.org/licenses/>.
|
# along with IfcOpenShell. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
# Configuration file for the Sphinx documentation builder.
|
# Configuration file for the Sphinx documentation builder.
|
||||||
#
|
#
|
||||||
@@ -36,7 +36,7 @@ sys.path.insert(0, os.path.abspath('..'))
|
|||||||
# -- Project information -----------------------------------------------------
|
# -- Project information -----------------------------------------------------
|
||||||
|
|
||||||
project = "IfcOpenShell"
|
project = "IfcOpenShell"
|
||||||
copyright = "2011-2023, IfcOpenShell Contributors"
|
copyright = "2011-2024, IfcOpenShell Contributors"
|
||||||
author = "IfcOpenShell Contributors"
|
author = "IfcOpenShell Contributors"
|
||||||
|
|
||||||
# The full version, including alpha/beta/rc tags
|
# The full version, including alpha/beta/rc tags
|
||||||
@@ -54,7 +54,7 @@ release = "0.7.0"
|
|||||||
# - No subnav making it really hard to navigate
|
# - No subnav making it really hard to navigate
|
||||||
# - Kinda hacky setup https://stackoverflow.com/questions/2701998/sphinx-autodoc-is-not-automatic-enough
|
# - Kinda hacky setup https://stackoverflow.com/questions/2701998/sphinx-autodoc-is-not-automatic-enough
|
||||||
# - I couldn't customise the template to show submodules above members which makes API discovery hard for users
|
# - I couldn't customise the template to show submodules above members which makes API discovery hard for users
|
||||||
extensions = ["autoapi.extension", "sphinx.ext.autosectionlabel"]
|
extensions = ["autoapi.extension", "sphinx.ext.autosectionlabel", "sphinx_copybutton"]
|
||||||
|
|
||||||
# Auto add document prefixes to help guarantee uniqueness of automatic section references.
|
# Auto add document prefixes to help guarantee uniqueness of automatic section references.
|
||||||
autosectionlabel_prefix_document = True
|
autosectionlabel_prefix_document = True
|
||||||
@@ -113,3 +113,51 @@ html_css_files = ["custom.css"]
|
|||||||
# page even on light themes.
|
# page even on light themes.
|
||||||
pygments_style = "one-dark"
|
pygments_style = "one-dark"
|
||||||
pygments_dark_style = "one-dark"
|
pygments_dark_style = "one-dark"
|
||||||
|
|
||||||
|
html_logo = "https://ifcopenshell.org/assets/images/logo.png"
|
||||||
|
html_theme_options = {
|
||||||
|
"source_repository": "https://github.com/IfcOpenShell/IfcOpenShell/",
|
||||||
|
"source_branch": "v0.7.0",
|
||||||
|
"source_directory": "src/ifcopenshell-python/docs/",
|
||||||
|
"light_css_variables": {
|
||||||
|
"color-brand-primary": "#39b54a",
|
||||||
|
"color-brand-content": "#39b54a",
|
||||||
|
"color-brand-visited": "#d9e021",
|
||||||
|
"color-background-primary": "#f7f7f6",
|
||||||
|
"color-background-secondary": "#eeeeec",
|
||||||
|
"color-background-border": "#cfd0cb",
|
||||||
|
"color-foreground-primary": "#2e3436",
|
||||||
|
"font-stack": "Nunito, -apple-system, BlinkMacSystemFont, Segoe UI, Helvetica, Arial, sans-serif, Apple Color Emoji, Segoe UI Emoji"
|
||||||
|
},
|
||||||
|
"dark_css_variables": {
|
||||||
|
"color-brand-primary": "#39b54a",
|
||||||
|
"color-brand-content": "#39b54a",
|
||||||
|
"color-brand-visited": "#d9e021",
|
||||||
|
# "color-background-primary": "#f7f7f6",
|
||||||
|
"color-background-primary": "#2e3436",
|
||||||
|
"color-background-border": "#2e3436",
|
||||||
|
"color-foreground-primary": "#eeeeec",
|
||||||
|
"font-stack": "Nunito, -apple-system, BlinkMacSystemFont, Segoe UI, Helvetica, Arial, sans-serif, Apple Color Emoji, Segoe UI Emoji"
|
||||||
|
},
|
||||||
|
|
||||||
|
"footer_icons": [
|
||||||
|
{
|
||||||
|
"name": "IfcOpenShell",
|
||||||
|
"url": "https://ifcopenshell.org",
|
||||||
|
"html": """
|
||||||
|
<img src="https://ifcopenshell.org/assets/images/logo.png" style="width: auto;" />
|
||||||
|
""",
|
||||||
|
"class": "",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "GitHub",
|
||||||
|
"url": "https://github.com/IfcOpenShell/IfcOpenShell/tree/v0.7.0/src/ifcopenshell-python/docs",
|
||||||
|
"html": """
|
||||||
|
<svg stroke="currentColor" fill="currentColor" stroke-width="0" viewBox="0 0 16 16">
|
||||||
|
<path fill-rule="evenodd" d="M8 0C3.58 0 0 3.58 0 8c0 3.54 2.29 6.53 5.47 7.59.4.07.55-.17.55-.38 0-.19-.01-.82-.01-1.49-2.01.37-2.53-.49-2.69-.94-.09-.23-.48-.94-.82-1.13-.28-.15-.68-.52-.01-.53.63-.01 1.08.58 1.23.82.72 1.21 1.87.87 2.33.66.07-.52.28-.87.51-1.07-1.78-.2-3.64-.89-3.64-3.95 0-.87.31-1.59.82-2.15-.08-.2-.36-1.02.08-2.12 0 0 .67-.21 2.2.82.64-.18 1.32-.27 2-.27.68 0 1.36.09 2 .27 1.53-1.04 2.2-.82 2.2-.82.44 1.1.16 1.92.08 2.12.51.56.82 1.27.82 2.15 0 3.07-1.87 3.75-3.65 3.95.29.25.54.73.54 1.48 0 1.07-.01 1.93-.01 2.2 0 .21.15.46.55.38A8.013 8.013 0 0 0 16 8c0-4.42-3.58-8-8-8z"></path>
|
||||||
|
</svg>
|
||||||
|
""",
|
||||||
|
"class": "",
|
||||||
|
},
|
||||||
|
],
|
||||||
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user