Files
PhpSpreadsheet/mkdocs.material.yml
T
oleibman d13f34b84e More Documentation Tweaks
Special handling in javascript and css for any image whose `alt` value starts with `Logo`, rather than targeting one specific value.

Remove 2 no-longer relevant statements from `extra.css`.

Add css member for `mkdocs` theme.

Add link to PhpSpreadsheet site to the bottom line of each page for `readthedocs` and `mkdocs` themes. In theory, these links should already exist, and they do locally, but not, for some reason, when run on readthedocs.io. This link is different from the `Edit on Github` link at the top, which is a kind of interesting feature.

Add a bookmarklet on the main page for toggling images to dark mode, which would probably be the preference for users employing dark mode. Images are usually left unchanged in dark mode, but almost all our images are screenshots, and dark mode might be appropriate for them.
2026-09-19 19:57:45 -07:00

55 lines
1.5 KiB
YAML

site_name: PhpSpreadsheet Documentation
repo_url: https://github.com/PHPOffice/phpspreadsheet
edit_uri: edit/master/docs/
theme:
name: material
features:
- content.code.copy
palette:
# Light mode configuration
- media: "(prefers-color-scheme: light)"
scheme: default
primary: indigo
accent: indigo
toggle:
icon: material/brightness-7
name: Switch to dark mode
# Dark mode configuration
- media: "(prefers-color-scheme: dark)"
scheme: slate
primary: indigo
accent: indigo
toggle:
icon: material/brightness-4
name: Switch to light mode
extra_css:
- extra/extra.css
- extra/tablestripes.css
# emacs is a reasonable style name in both light and dark.
# default is good only for light, lightbulb for dark.
# Use either emacs or (both default.light lightbulb.dark).
# More details available in docs/extra/pygments.customization.txt.
# - extra/pygments.emacs.css
- extra/pygments.default.light.css
- extra/pygments.lightbulb.dark.css
- extra/zensical.topbar.css
extra_javascript:
- extra/extrajs.js
markdown_extensions:
- md_in_html
- pymdownx.highlight:
anchor_linenums: true
line_spans: __span
pygments_lang_class: true
extend_pygments_lang:
- name: php
lang: php
options:
startinline: true
- pymdownx.inlinehilite
- pymdownx.snippets
- pymdownx.superfences