GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — libprocessing/docs/gen_ref_pages.py at python-api · processing/libprocessing

Expand file tree

/

gen_ref_pages.py

Copy path
More file actions
More file actions

Latest commit

 

History

History
History
22 lines (18 loc) · 777 Bytes
/

gen_ref_pages.py

Copy path

File metadata and controls

22 lines (18 loc) · 777 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
from pathlib import Path
import mkdocs_gen_files
readme = Path("crates/processing_pyo3/README.md").read_text(encoding="utf-8")
with mkdocs_gen_files.open("index.md", "w") as f:
f.write(readme)
modules = {
"reference/index.md": ("API Reference", "mewnala", {"show_submodules": False}),
"reference/math.md": ("mewnala.math", "mewnala.math", {}),
# "reference/color.md": ("mewnala.color", "mewnala.color", {}),
}
for path, (title, module, options) in modules.items():
with mkdocs_gen_files.open(path, "w") as f:
f.write(f"# {title}\n\n")
if options:
opts = "\n".join(f" {k}: {v}" for k, v in options.items())
f.write(f"::: {module}\n options:\n{opts}\n")
else:
f.write(f"::: {module}\n")
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.