refactor: symmetric config layout and root CONTRIBUTING docs (#502)

* refactor: reorganize mdbook config and contributing docs

* fix: correct preprocessor relative paths in book.toml configs

The preprocessor command paths had one extra ../ level, resolving
outside the repo root. Fix from ../../../../tools/ to ../../../tools/.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Yeqi Huang
2026-03-15 18:07:53 +00:00
committed by GitHub
parent 92e3f3e059
commit d12d14a1eb
40 changed files with 750 additions and 687 deletions

View File

@@ -10,10 +10,10 @@ REPO_ROOT = Path(__file__).resolve().parents[1]
class DarkModeImagesCssTests(unittest.TestCase):
def test_both_theme_css_files_style_dark_mode_body_images_only(self) -> None:
css_paths = [
REPO_ROOT / "v1" / "theme" / "dark-mode-images.css",
REPO_ROOT / "v1" / "books" / "zh" / "theme" / "dark-mode-images.css",
REPO_ROOT / "v2" / "theme" / "dark-mode-images.css",
REPO_ROOT / "v2" / "books" / "zh" / "theme" / "dark-mode-images.css",
REPO_ROOT / "v1" / "config" / "en_config" / "theme" / "dark-mode-images.css",
REPO_ROOT / "v1" / "config" / "zh_config" / "theme" / "dark-mode-images.css",
REPO_ROOT / "v2" / "config" / "en_config" / "theme" / "dark-mode-images.css",
REPO_ROOT / "v2" / "config" / "zh_config" / "theme" / "dark-mode-images.css",
]
for css_path in css_paths: