From 933c36e808d876bc1d2d1e85a65188dd7f49d7aa Mon Sep 17 00:00:00 2001 From: ericbsd Date: Sat, 15 Mar 2025 22:54:23 -0300 Subject: [PATCH 1/6] Reworked the directory structure and added dark mode --- Makefile | 2 +- {source/_static => _static}/.keepme | 0 _static/dark_mode.css | 190 ++++++++++++++++++ _static/dark_mode.js | 44 ++++ {source/_templates => _templates}/.keepme | 0 source/conf.py => conf.py | 7 +- .../contributor-levels-pl.md | 0 .../contributor-levels.md | 0 .../documentation-pl.md | 0 .../documentation.md | 0 .../get-involved-pl.md | 0 .../get-involved.md | 0 .../getting-started-pl.md | 0 .../getting-started.md | 0 .../ghostbsd-contributors-guide-pl.md | 0 .../ghostbsd-contributors-guide.md | 0 contributor/index.md | 0 .../users-support-pl.md | 0 .../users-support.md | 0 source/index-pl.md => index-pl.md | 0 source/index.md => index.md | 0 {source/legal => legal}/license.md | 0 {source/legal => legal}/trademark.md | 0 make.bat | 2 +- {source/user => user}/FAQ.md | 0 .../custom-installation-pl.md | 0 .../installation-guide/custom-installation.md | 0 .../full-disk-installation-pl.md | 0 .../full-disk-installation.md | 0 .../installation-guide/getting-started-pl.md | 0 .../installation-guide/getting-started.md | 0 .../1-custom-partitioning.png | Bin .../2-no-partition-table.png | Bin .../custom-installation/3-select-gpt.png | Bin .../4-with-partition-table.png | Bin .../custom-installation/5-efi-partition.png | Bin .../custom-installation/6-zfs-partition.png | Bin .../custom-installation/7-swap-partition.png | Bin .../8-completed-partitioning.png | Bin .../full-disk-installation/0-boot-bios.png | Bin .../full-disk-installation/0-boot-uefi.png | Bin .../full-disk-installation/1-desktop.png | Bin .../full-disk-installation/10-progress.png | Bin .../full-disk-installation/11-complete.png | Bin .../2-localization-language.png | Bin .../3-localization-keyboard.png | Bin .../4-localization-timezone.png | Bin .../full-disk-installation/5-install-type.png | Bin .../6-install-location.png | Bin .../full-disk-installation/7-loader-uefi.png | Bin .../8-accounts-root.png | Bin .../9-accounts-user.png | Bin .../installation-guide-pl.md | 0 .../installation-guide/installation-guide.md | 0 .../installation-guide/troubleshooting-pl.md | 0 .../installation-guide/troubleshooting.md | 0 .../user => user}/upgrade-img/completed.png | Bin .../upgrade-img/notification.png | Bin .../user => user}/upgrade-img/progress.png | Bin .../upgrade-img/upgrade_window.png | Bin {source/user => user}/upgrading-guide.md | 0 61 files changed, 241 insertions(+), 4 deletions(-) rename {source/_static => _static}/.keepme (100%) create mode 100644 _static/dark_mode.css create mode 100644 _static/dark_mode.js rename {source/_templates => _templates}/.keepme (100%) rename source/conf.py => conf.py (93%) rename {source/contributor => contributor}/contributor-levels-pl.md (100%) rename {source/contributor => contributor}/contributor-levels.md (100%) rename {source/contributor => contributor}/documentation-pl.md (100%) rename {source/contributor => contributor}/documentation.md (100%) rename {source/contributor => contributor}/get-involved-pl.md (100%) rename {source/contributor => contributor}/get-involved.md (100%) rename {source/contributor => contributor}/getting-started-pl.md (100%) rename {source/contributor => contributor}/getting-started.md (100%) rename {source/contributor => contributor}/ghostbsd-contributors-guide-pl.md (100%) rename {source/contributor => contributor}/ghostbsd-contributors-guide.md (100%) create mode 100644 contributor/index.md rename {source/contributor => contributor}/users-support-pl.md (100%) rename {source/contributor => contributor}/users-support.md (100%) rename source/index-pl.md => index-pl.md (100%) rename source/index.md => index.md (100%) rename {source/legal => legal}/license.md (100%) rename {source/legal => legal}/trademark.md (100%) rename {source/user => user}/FAQ.md (100%) rename {source/user => user}/installation-guide/custom-installation-pl.md (100%) rename {source/user => user}/installation-guide/custom-installation.md (100%) rename {source/user => user}/installation-guide/full-disk-installation-pl.md (100%) rename {source/user => user}/installation-guide/full-disk-installation.md (100%) rename {source/user => user}/installation-guide/getting-started-pl.md (100%) rename {source/user => user}/installation-guide/getting-started.md (100%) rename {source/user => user}/installation-guide/images/custom-installation/1-custom-partitioning.png (100%) rename {source/user => user}/installation-guide/images/custom-installation/2-no-partition-table.png (100%) rename {source/user => user}/installation-guide/images/custom-installation/3-select-gpt.png (100%) rename {source/user => user}/installation-guide/images/custom-installation/4-with-partition-table.png (100%) rename {source/user => user}/installation-guide/images/custom-installation/5-efi-partition.png (100%) rename {source/user => user}/installation-guide/images/custom-installation/6-zfs-partition.png (100%) rename {source/user => user}/installation-guide/images/custom-installation/7-swap-partition.png (100%) rename {source/user => user}/installation-guide/images/custom-installation/8-completed-partitioning.png (100%) rename {source/user => user}/installation-guide/images/full-disk-installation/0-boot-bios.png (100%) rename {source/user => user}/installation-guide/images/full-disk-installation/0-boot-uefi.png (100%) rename {source/user => user}/installation-guide/images/full-disk-installation/1-desktop.png (100%) rename {source/user => user}/installation-guide/images/full-disk-installation/10-progress.png (100%) rename {source/user => user}/installation-guide/images/full-disk-installation/11-complete.png (100%) rename {source/user => user}/installation-guide/images/full-disk-installation/2-localization-language.png (100%) rename {source/user => user}/installation-guide/images/full-disk-installation/3-localization-keyboard.png (100%) rename {source/user => user}/installation-guide/images/full-disk-installation/4-localization-timezone.png (100%) rename {source/user => user}/installation-guide/images/full-disk-installation/5-install-type.png (100%) rename {source/user => user}/installation-guide/images/full-disk-installation/6-install-location.png (100%) rename {source/user => user}/installation-guide/images/full-disk-installation/7-loader-uefi.png (100%) rename {source/user => user}/installation-guide/images/full-disk-installation/8-accounts-root.png (100%) rename {source/user => user}/installation-guide/images/full-disk-installation/9-accounts-user.png (100%) rename {source/user => user}/installation-guide/installation-guide-pl.md (100%) rename {source/user => user}/installation-guide/installation-guide.md (100%) rename {source/user => user}/installation-guide/troubleshooting-pl.md (100%) rename {source/user => user}/installation-guide/troubleshooting.md (100%) rename {source/user => user}/upgrade-img/completed.png (100%) rename {source/user => user}/upgrade-img/notification.png (100%) rename {source/user => user}/upgrade-img/progress.png (100%) rename {source/user => user}/upgrade-img/upgrade_window.png (100%) rename {source/user => user}/upgrading-guide.md (100%) diff --git a/Makefile b/Makefile index d0c3cbf..ed88099 100644 --- a/Makefile +++ b/Makefile @@ -5,7 +5,7 @@ # from the environment for the first two. SPHINXOPTS ?= SPHINXBUILD ?= sphinx-build -SOURCEDIR = source +SOURCEDIR = . BUILDDIR = build # Put it first so that "make" without argument is like "make help". diff --git a/source/_static/.keepme b/_static/.keepme similarity index 100% rename from source/_static/.keepme rename to _static/.keepme diff --git a/_static/dark_mode.css b/_static/dark_mode.css new file mode 100644 index 0000000..a68cb5d --- /dev/null +++ b/_static/dark_mode.css @@ -0,0 +1,190 @@ +/* Dark mode styles, applied only when body has the dark-mode class */ +body.dark-mode { + background-color: #252525; /* Slightly lighter dark gray */ + color: #e0e0e0; /* Light gray text */ +} + +body.dark-mode .wy-nav-top { + background-color: #2b2b2b; /* Darker header */ +} + +body.dark-mode .wy-nav-side { + background-color: #2b2b2b; /* Dark sidebar */ +} + +body.dark-mode .wy-menu-vertical a { + color: #e0e0e0; /* Light sidebar links */ +} + +body.dark-mode .wy-menu-vertical a:hover { + background-color: #3c3c3c; /* Hover effect for general links */ +} + +body.dark-mode .wy-nav-content { + background-color: #252525; /* Match the body background */ +} + +body.dark-mode h1, +body.dark-mode h2, +body.dark-mode h3, +body.dark-mode h4, +body.dark-mode h5, +body.dark-mode h6 { + color: #ffffff; /* White headings */ +} + +body.dark-mode a { + color: #4da8da; /* Light blue links */ +} + +body.dark-mode a:hover { + color: #66b3ff; /* Lighter blue on hover */ +} + +body.dark-mode pre { + background-color: #2b2b2b; /* Dark code background */ + color: #e0e0e0; /* Light code text */ + border: 1px solid #3c3c3c; +} + +/* Optional: Style the toggle button */ +button { + padding: 8px 16px; + background-color: #4da8da; + color: white; + border: none; + border-radius: 4px; + cursor: pointer; +} + +button:hover { + background-color: #66b3ff; +} + +body.dark-mode button { + background-color: #2b2b2b; + color: #e0e0e0; +} + +body.dark-mode button:hover { + background-color: #3c3c3c; +} + +/* Ensure proper layout in wy-breadcrumbs */ +.wy-breadcrumbs { + position: relative; + padding: 0 10px; + overflow: hidden; /* Contain floated elements */ + white-space: nowrap; /* Prevent wrapping */ +} + +/* Style
  • elements to stay inline */ +.wy-breadcrumbs li { + display: inline-block; + margin-right: 5px; + vertical-align: middle; /* Align breadcrumb items */ +} + +/* Style wy-breadcrumbs-aside to keep "View page source" on the right */ +.wy-breadcrumbs-aside { + float: right; /* Matches theme's default behavior */ + display: inline-block; + margin-left: 10px; /* Space from button */ +} + +/* Ensure "View page source" aligns properly */ +.wy-breadcrumbs-aside a { + display: inline-block; + vertical-align: middle; +} + +/* Style the button directly in wy-breadcrumbs to stay on the right */ +.wy-breadcrumbs button { + float: right; /* Pin to the right */ + margin-left: 10px; /* Space from breadcrumb text */ + margin-right: 10px; /* Space before "View page source" */ + vertical-align: middle; /* Align with other items */ +} + +/* Keep GhostBSD white in both modes */ +.wy-side-nav-search .icon.icon-home:not([aria-label="Home"]) { + color: #ffffff; /* White in light mode */ +} + +body.dark-mode .wy-side-nav-search .icon.icon-home:not([aria-label="Home"]) { + color: #ffffff; /* White in dark mode */ +} + +/* Fix white background of .toctree-l1.current in dark mode */ +body.dark-mode .wy-menu-vertical .toctree-l1.current { + background-color: #3c3c3c; /* Slightly lighter than sidebar */ +} + +/* Darken background of in dark mode */ +body.dark-mode .wy-menu-vertical a.reference.internal.current { + background-color: #333333; /* Darker than #3c3c3c */ +} + +/* Ensure .toctree-l2 fills the li and darkens on hover */ +.wy-menu-vertical .toctree-l2 a { + display: block; /* Ensure it fills the li */ +} + +body.dark-mode .wy-menu-vertical .toctree-l2 a:hover { + background-color: #2a2a2a !important; /* Darker than #3c3c3c, override all */ +} + +/* Ensure in sidebar fills its parent
  • */ +.wy-menu-vertical .toctree-l1 a { + display: block; /* Ensure it fills the li */ +} + +/* Ensure in toctree-l3 fills its parent
  • */ +.wy-menu-vertical .toctree-l3 a { + display: block; /* Ensure it fills the li */ +} + +/* Darken inside .toctree-l1.current[aria-expanded="true"] at all times */ +body.dark-mode .wy-menu-vertical .toctree-l1.current[aria-expanded="true"] a[href="#"] { + background-color: #2b2b2b; /* Darker than #3c3c3c, constant background */ +} + +/* Highly specific override for .toctree-l2.current in dark mode */ +body.dark-mode .wy-nav-side .wy-menu.wy-menu-vertical ul li.current.toctree-l2 { + background-color: #3c3c3c !important; /* Reordered classes for specificity */ +} + +/* Ensure li.toctree-l2.current has the correct background in dark mode */ +body.dark-mode .wy-menu-vertical li.toctree-l2.current { + background-color: #3c3c3c !important; +} + +/* Ensure the inside li.toctree-l2.current does not override the background */ +body.dark-mode .wy-menu-vertical li.toctree-l2.current a { + background-color: transparent !important; +} + +/* Ensure nested