Skip to content

Commit

Permalink
fix docs publish (#41)
Browse files Browse the repository at this point in the history
  • Loading branch information
kylebarron authored Jul 2, 2024
1 parent d3786a3 commit 95ecbbf
Show file tree
Hide file tree
Showing 3 changed files with 170 additions and 2 deletions.
135 changes: 135 additions & 0 deletions arro3-core/mkdocs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,135 @@
site_name: arro3-core
repo_name: kylebarron/arro3
repo_url: https://github.com/kylebarron/arro3
site_description: A minimal Python library for Apache Arrow, binding to the Rust Arrow implementation.
site_author: Kyle Barron
docs_dir: docs

extra:
social:
- icon: "fontawesome/brands/github"
link: "https://github.com/kylebarron"
- icon: "fontawesome/brands/twitter"
link: "https://twitter.com/kylebarron2"
version:
provider: mike

nav:
- "index.md"
- API Reference:
- api/index.md
- api/array.md
- api/chunked-array.md
- api/field.md
- api/record-batch-reader.md
- api/record-batch.md
- api/schema.md
- api/table.md
- api/types.md

watch:
- python
- docs

theme:
name: material
palette:
# Palette toggle for automatic mode
- media: "(prefers-color-scheme)"
toggle:
icon: material/brightness-auto
name: Switch to light mode

# Palette toggle for light mode
- media: "(prefers-color-scheme: light)"
primary: indigo
accent: indigo
toggle:
icon: material/brightness-7
name: Switch to dark mode

# Palette toggle for dark mode
- media: "(prefers-color-scheme: dark)"
scheme: slate
primary: indigo
accent: indigo
toggle:
icon: material/brightness-4
name: Switch to system preference

font:
text: Roboto
code: Roboto Mono

# logo: img/geopolars_logo.svg

features:
- content.code.annotate
- content.code.copy
- navigation.indexes
- navigation.instant
- navigation.tracking
- search.suggest
- search.share

plugins:
- search
- social
- mike:
alias_type: "copy"
canonical_version: "latest"
- mkdocstrings:
enable_inventory: true
handlers:
python:
paths: [python]
options:
docstring_section_style: list
docstring_style: google
line_length: 80
separate_signature: true
show_root_heading: true
show_signature_annotations: true
show_source: false
show_symbol_type_toc: true
signature_crossrefs: true
extensions:
- griffe_inherited_docstrings

import:
- https://arrow.apache.org/docs/objects.inv
- https://docs.python.org/3/objects.inv
- https://numpy.org/doc/stable/objects.inv
- https://pandas.pydata.org/pandas-docs/stable/objects.inv
- https://pola-rs.github.io/polars/py-polars/html/objects.inv

# https://github.com/developmentseed/titiler/blob/50934c929cca2fa8d3c408d239015f8da429c6a8/docs/mkdocs.yml#L115-L140
markdown_extensions:
- admonition
- attr_list
- codehilite:
guess_lang: false
- def_list
- footnotes
- md_in_html
- pymdownx.arithmatex
- pymdownx.betterem
- pymdownx.caret:
insert: false
- pymdownx.details
- pymdownx.emoji:
emoji_index: !!python/name:material.extensions.emoji.twemoji
emoji_generator: !!python/name:material.extensions.emoji.to_svg
- pymdownx.escapeall:
hardbreak: true
nbsp: true
- pymdownx.magiclink:
hide_protocol: true
repo_url_shortener: true
- pymdownx.smartsymbols
- pymdownx.superfences
- pymdownx.tasklist:
custom_checkbox: true
- pymdownx.tilde
- toc:
permalink: true
33 changes: 31 additions & 2 deletions arro3-core/poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions arro3-core/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -34,3 +34,7 @@ mkdocs = "^1.4.3"
mkdocs-material = { version = "^9.5", extras = ["imaging"] }
mkdocstrings = { version = "^0.25.1", extras = ["python"] }
mike = "^2"

[tool.poetry.group.dev.dependencies]
maturin = "^1.6.0"

0 comments on commit 95ecbbf

Please sign in to comment.