-
Notifications
You must be signed in to change notification settings - Fork 118
Expand file tree
/
Copy pathmkdocs.yml
More file actions
213 lines (200 loc) · 7.12 KB
/
mkdocs.yml
File metadata and controls
213 lines (200 loc) · 7.12 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
site_name: City2Graph
site_url: !ENV [READTHEDOCS_CANONICAL_URL, 'https://city2graph.net/latest/']
site_author: Yuta Sato
site_description: >-
City2Graph is a Python library to transform geospatial data (OSM, GTFS, POIs)
into heterogeneous graphs for Urban Network Analysis and Graph Neural Networks
(GNNs).
repo_url: https://github.com/c2g-dev/city2graph
repo_name: c2g-dev/city2graph
copyright: Copyright © 2026 Yuta Sato & City2Graph developers
use_directory_urls: false
theme:
name: material
custom_dir: docs/overrides # If you need to override templates
font:
text: Inter
code: JetBrains Mono
palette:
# Auto mode (follows system preference) - Default
- media: (prefers-color-scheme)
toggle:
icon: material/link
name: Switch to light mode
# Light mode
- media: '(prefers-color-scheme: light)'
scheme: city2graph-light
toggle:
icon: material/toggle-switch
name: Switch to dark mode
# Dark mode
- media: '(prefers-color-scheme: dark)'
scheme: city2graph-dark
toggle:
icon: material/toggle-switch-off
name: Switch to auto mode
features:
- navigation.tabs
- navigation.sections
- navigation.top
- navigation.tracking
- search.suggest
- search.highlight
- content.code.copy
# Social cards (replaces sphinxext.opengraph)
- navigation.instant
- navigation.tabs.sticky
- navigation.path
logo: assets/logos/city2graph_logo_wide.png
favicon: assets/logos/city2graph_logo.png
icon:
repo: fontawesome/brands/github
# CSS & JS (Move files from _static to docs/stylesheets and docs/javascripts)
extra_css:
- stylesheets/custom.css
extra_javascript:
- javascripts/mathjax.js
- https://unpkg.com/mathjax@3/es5/tex-mml-chtml.js
- javascripts/gtag.js
- javascripts/redirect.js
- javascripts/readthedocs.js
# Plugins
plugins:
- search
- mike
# social plugin disabled - using custom OG meta tags in overrides/main.html instead
# (social plugin requires Cairo which may not be available on all systems)
- git-revision-date-localized:
enable_creation_date: true
- minify:
minify_html: true
- rss
- autorefs # Enable cross-references to any Markdown heading
- mkdocstrings:
default_handler: python
enable_inventory: true # Generate objects.inv for cross-project references
handlers:
python:
paths: [.] # Add root to path so it finds city2graph
inventories:
# External library inventories for cross-references
- https://docs.python.org/3/objects.inv
- https://numpy.org/doc/stable/objects.inv
- https://pandas.pydata.org/docs/objects.inv
- https://geopandas.org/en/stable/objects.inv
- https://networkx.org/documentation/stable/objects.inv
- https://shapely.readthedocs.io/en/stable/objects.inv
- https://pyproj4.github.io/pyproj/stable/objects.inv
- https://python-visualization.github.io/folium/latest/objects.inv
- https://contextily.readthedocs.io/en/stable/objects.inv
- https://pytorch-geometric.readthedocs.io/en/stable/objects.inv
- https://docs.scipy.org/doc/scipy/objects.inv
- https://matplotlib.org/stable/objects.inv
- https://fiona.readthedocs.io/en/latest/objects.inv
- https://www.rustworkx.org/objects.inv
- https://pytorch.org/docs/stable/objects.inv
- http://docs.momepy.org/en/stable/objects.inv
- https://osmnx.readthedocs.io/en/stable/objects.inv
- https://pysal.org/libpysal/objects.inv
options:
# General options
show_source: false
show_bases: true
show_inheritance_diagram: true
# Headings options
show_root_heading: true
show_root_full_path: true
heading_level: 2
show_symbol_type_heading: false
show_symbol_type_toc: true
# Members options
members_order: source
group_by_category: true
show_submodules: false
show_labels: true
summary: true
filters:
- '!^_' # Exclude private members
- ^__init__$ # But include __init__
# Docstring options
docstring_style: numpy
docstring_section_style: table
merge_init_into_class: true
show_if_no_docstring: false
show_docstring_attributes: true
show_docstring_functions: true
show_docstring_classes: true
show_docstring_modules: true
show_docstring_description: true
show_docstring_examples: true
show_docstring_other_parameters: true
show_docstring_parameters: true
show_docstring_raises: true
show_docstring_returns: true
show_docstring_warns: true
show_docstring_yields: true
scoped_crossrefs: true
# Signature options
show_signature: true
show_signature_annotations: false
separate_signature: true
line_length: 80
modernize_annotations: true
signature_crossrefs: true
annotations_path: brief
unwrap_annotated: true
show_signature_type_parameters: true
- mkdocs-jupyter:
include_source: true
ignore_h1_titles: true
theme: dark
# Markdown Extensions (Matches Sphinx features)
markdown_extensions:
- meta
- admonition
- pymdownx.details
- pymdownx.superfences
- pymdownx.highlight:
anchor_linenums: true
- pymdownx.inlinehilite
- pymdownx.snippets
- pymdownx.tabbed:
alternate_style: true
- toc:
permalink: true
- attr_list
- pymdownx.arithmatex: # MathJax support
generic: true
extra:
social:
- icon: fontawesome/brands/github
link: https://github.com/c2g-dev/city2graph
- icon: fontawesome/brands/linkedin
link: https://www.linkedin.com/in/yuta-sato-633750161/
- icon: fontawesome/brands/medium
link: https://medium.com/@yuta.sato.now
analytics:
provider: google
property: G-YLJ6HSS8C4
# Navigation Structure
nav:
- Home: index.md
- Installation: installation.md
- Examples:
- Overview of City2Graph Examples: examples/index.md
- Metapath Construction for Heterogeneous GNNs: examples/add_metapaths.ipynb
- Morphological Graphs from Overture Maps & OpenStreetMap: examples/morphological_graph_from_overturemaps.ipynb # yamllint disable-line rule:line-length
- GTFS to Graphs: examples/gtfs.ipynb
- OD Matrix to Graphs: examples/generating_graphs_from_od_matrix.ipynb
- Spatial Proximity Graphs: examples/generating_graphs_by_proximity.ipynb
- API Reference:
- Overview: api/index.md
- Graph: api/graph.md
- Metapath: api/metapath.md
- Morphology: api/morphology.md
- Transportation: api/transportation.md
- Mobility: api/mobility.md
- Proximity: api/proximity.md
- Data: api/data.md
- Utils: api/utils.md
- Contributing: contributing.md