diff --git a/docs/requirements.txt b/docs/requirements.txt index 26bc5f6af8..a193a5f96c 100644 --- a/docs/requirements.txt +++ b/docs/requirements.txt @@ -3,4 +3,4 @@ sphinx==7.1.2 docutils==0.18.1 jinja2==3.1.6 sphinx-design==0.5.0 -sphinxawesome-theme==6.0.0b2 \ No newline at end of file +sphinxawesome-theme==5.3.2 \ No newline at end of file diff --git a/docs/source/_static/luadoc.css b/docs/source/_static/luadoc.css index 3ae140a4bb..238cdbee45 100644 --- a/docs/source/_static/luadoc.css +++ b/docs/source/_static/luadoc.css @@ -17,14 +17,11 @@ padding: 0px; } -@media (prefers-color-scheme: dark) { - #luadoc pre.example, - #luadoc pre.example code { - background-color: hsl(var(--muted)); - color: #ffffff; - } +html.dark #luadoc pre.example, +html.dark #luadoc pre.example code { + background-color: hsl(var(--muted)); + color: #ffffff; } - #luadoc > p:nth-child(1) { margin: 12px 0 12px 0; } diff --git a/docs/source/_static/theme-override.css b/docs/source/_static/theme-override.css index 71d572e890..62eb60c943 100644 --- a/docs/source/_static/theme-override.css +++ b/docs/source/_static/theme-override.css @@ -1,11 +1,9 @@ -#content a.sd-badge:not(.toc-backref) { +#content a.sd-badge:not(.toc-backref), #content table a:not(.toc-backref) { text-decoration: none; } -@media (prefers-color-scheme: dark) { - .dark\:invert { - --tw-invert: none; - } +.dark\:invert { + --tw-invert: none !important; } code { @@ -19,3 +17,7 @@ code { .md-content { margin-left: 500px; /* match the new sidebar width */ } + +#searchbox kbd { + display: none !important; +} \ No newline at end of file diff --git a/docs/source/conf.py b/docs/source/conf.py index b8d73583bf..85a3906e17 100644 --- a/docs/source/conf.py +++ b/docs/source/conf.py @@ -136,7 +136,8 @@ exclude_patterns = [] #show_authors = False # The name of the Pygments (syntax highlighting) style to use. -pygments_style = 'github-dark' +pygments_style = 'sphinx' +pygments_style_dark = 'github-dark' # A list of ignored prefixes for module index sorting. #modindex_common_prefix = [] diff --git a/docs/source/index.rst b/docs/source/index.rst index 4a7ed95d02..521a91cb5d 100644 --- a/docs/source/index.rst +++ b/docs/source/index.rst @@ -1,18 +1,20 @@ Welcome to OpenMW's Documentation! ================================== +This documentation covers all aspects of OpenMW development, scripting, and content creation. +Use the categorized sections below to quickly access technical references, modding tools, and installation guides. + .. toctree:: :caption: Reference - :hidden: + :titlesonly: :maxdepth: 4 reference/modding/index reference/postprocessing/index - reference/documentationHowTo .. toctree:: :caption: Lua - :hidden: + :titlesonly: :maxdepth: 4 reference/lua-scripting/overview @@ -21,7 +23,7 @@ Welcome to OpenMW's Documentation! .. toctree:: :caption: Help - :hidden: + :titlesonly: :maxdepth: 4 manuals/installation/index diff --git a/docs/source/reference/lua-scripting/index_auxpackages.rst b/docs/source/reference/lua-scripting/index_auxpackages.rst index e50fe45026..ea17a3ddbb 100644 --- a/docs/source/reference/lua-scripting/index_auxpackages.rst +++ b/docs/source/reference/lua-scripting/index_auxpackages.rst @@ -7,10 +7,10 @@ Auxiliary Packages .. toctree:: :hidden: - aux_calendar - aux_time - aux_ui - aux_util + calendar + time + ui + util **Auxiliary packages** diff --git a/docs/source/reference/lua-scripting/index_interfaces.rst b/docs/source/reference/lua-scripting/index_interfaces.rst index 0e89cb09f7..4d9f6e9cff 100644 --- a/docs/source/reference/lua-scripting/index_interfaces.rst +++ b/docs/source/reference/lua-scripting/index_interfaces.rst @@ -16,7 +16,7 @@ Interfaces ItemUsage MWUI Settings - Skill_progression + SkillProgression UI Crimes diff --git a/docs/source/reference/modding/custom-models/index.rst b/docs/source/reference/modding/custom-models/index.rst index b2d92032c5..fb317068c4 100644 --- a/docs/source/reference/modding/custom-models/index.rst +++ b/docs/source/reference/modding/custom-models/index.rst @@ -16,6 +16,7 @@ Below is a quick overview of supported formats, followed by separate articles wi .. toctree:: :caption: Table of Contents + :hidden: :maxdepth: 1 pipeline-blender-collada-static-models diff --git a/docs/source/reference/modding/settings/index.rst b/docs/source/reference/modding/settings/index.rst index da367f4bee..940e207e0f 100644 --- a/docs/source/reference/modding/settings/index.rst +++ b/docs/source/reference/modding/settings/index.rst @@ -50,28 +50,28 @@ The ranges included with each setting are the physically possible ranges, not re :hidden: :maxdepth: 2 - camera - cells - fog - groundcover - map - GUI - HUD - game - general - lua - shaders - shadows - input - saves - sound - terrain - video - water - windows - navigator - physics - models - postprocessing - stereo - stereoview + Camera + Cells + Fog + Groundcover + Map + GUI + HUD + Game + General + Lua + Shaders + Shadows + Input + Saves + Sound + Terrain + Video