diff --git a/doc/changelog.d/3918.fixed.md b/doc/changelog.d/3918.fixed.md new file mode 100644 index 00000000000..d7ca047b175 --- /dev/null +++ b/doc/changelog.d/3918.fixed.md @@ -0,0 +1 @@ +fix: documentation html looks \ No newline at end of file diff --git a/doc/source/_static/custom.css b/doc/source/_static/custom.css index 4e58170ec53..39e7f448d65 100644 --- a/doc/source/_static/custom.css +++ b/doc/source/_static/custom.css @@ -20,28 +20,29 @@ box-shadow: 0 0rem 0rem 0 rgb(255,172,0); /* var(--pst-color-shadow); */ } +/* Navbar elements */ +.bd-navbar-elements { + text-align: center; +} + +/* Centering the page content */ +.bd-main .bd-content { + display: flex; + justify-content: center; +} + +/* Removing navbar shadow */ +.sd-shadow-sm { + box-shadow: 0 0rem 0rem rgba(250, 250, 250, 0.6) !important; + } + /* anything related to the light theme */ html[data-theme="light"] { /* whatever you want to change */ - background: rgb(245, 245, 245); - --pst-color-on-background: rgb(35, 35, 35); - --pst-color-background: rgb(245, 245, 245); - --sd-color-card-border-hover: rgb(255,172,0); - - .sd-shadow-sm { - box-shadow: 0 0rem 0rem rgba(250, 250, 250, 0.6) !important - } } /* anything related to the dark theme */ html[data-theme="dark"] { /* whatever you want to change */ - background: rgb(35, 35, 35); - --pst-color-on-background: rgb(35, 35, 35); - --pst-color-background: rgb(35, 35, 35); - --sd-color-card-border-hover: rgb(255,172,0); - .sd-shadow-sm { - box-shadow: 0 0rem 0rem rgba(250, 250, 250, 0.6) !important - } } diff --git a/doc/source/conf.py b/doc/source/conf.py index 23ab6e8e5cb..16db872df23 100755 --- a/doc/source/conf.py +++ b/doc/source/conf.py @@ -316,8 +316,23 @@ "json_url": f"https://{cname}/versions.json", "version_match": switcher_version, }, + # Removing the secondary sidebar for the MAPDL commands + "secondary_sidebar_items": { + # "mapdl_commands/**/**": [], + # "mapdl_commands/index": [], + "**": [], # "page-toc", "edit-this-page", "sourcelink"] + }, + "navbar_persistent": [], + "primary_sidebar_end": ["edit-this-page", "sourcelink"], + "navbar_end": [ + "search-button-field", + "version-switcher", + "theme-switcher", + "navbar-icon-links", + ], } + BUILD_CHEATSHEET = os.environ.get("BUILD_CHEATSHEET", "false").lower() == "true" if BUILD_CHEATSHEET: @@ -338,10 +353,6 @@ } html_show_sourcelink = False -html_sidebars = { - "mapdl_commands/**/**": [], - "mapdl_commands/index": [], -} # -- Options for HTMLHelp output --------------------------------------------- diff --git a/doc/source/index.rst b/doc/source/index.rst index cd367c6728b..3913f2ff68f 100644 --- a/doc/source/index.rst +++ b/doc/source/index.rst @@ -33,14 +33,6 @@ .. vale off -.. let's hide the `Edit on GitHub` link in this page... -.. and the whole sidebar with it. -.. hideobject:: - :class: bd-sidebar-secondary bd-toc - :remove: true - :adjustmargin: true - - .. title is given using the **What do you want to do? I want to...** diff --git a/doc/source/user_guide/index.rst b/doc/source/user_guide/index.rst index c750478f745..c1b1957190f 100644 --- a/doc/source/user_guide/index.rst +++ b/doc/source/user_guide/index.rst @@ -129,7 +129,8 @@ various advanced methods to visualize, script, and interact with MAPDL, see Calling MAPDL Pythonically -~~~~~~~~~~~~~~~~~~~~~~~~~~ +========================== + MAPDL functions can be called directly from an instance of :class:`Mapdl ` in a Pythonic manner. This is to simplify calling Ansys, especially when inputs are variables within