Skip to content

Commit

Permalink
install mkdocs (#84)
Browse files Browse the repository at this point in the history
  • Loading branch information
sargunv authored Dec 3, 2024
1 parent 6bda553 commit bfa3910
Show file tree
Hide file tree
Showing 4 changed files with 78 additions and 1 deletion.
5 changes: 4 additions & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,12 @@ plugins {
alias(libs.plugins.kotlin.cocoapods) apply false
alias(libs.plugins.spotless)
alias(libs.plugins.dokka)
alias(libs.plugins.mkdocs)
}

dokka { moduleName = "MapLibre Compose" }
mkdocs { sourcesDir = "docs" }

dokka { moduleName = "MapLibre Compose API Reference" }

dependencies { dokka(project(":lib:maplibre-compose:")) }

Expand Down
3 changes: 3 additions & 0 deletions docs/docs/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# MapLibre Compose

TODO
70 changes: 70 additions & 0 deletions docs/mkdocs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
site_name: MapLibre Compose

site_description: MapLibre Compose embeds interactive vactor map in your Compose Multiplatform apps.
site_url: https://sargunv.github.io/maplibre-compose

repo_name: maplibre-compose
repo_url: http://github.com/sargunv/maplibre-compose
edit_uri: "edit/main/docs/docs/"

copyright: "Copyright © 2024 Sargun Vohra"

theme:
name: "material"
icon:
repo: "fontawesome/brands/github"
palette:
- media: "(prefers-color-scheme)"
features:
- navigation.instant
- navigation.instant.prefetch
- navigation.instant.progress
- navigation.instant.preview
- navigation.tracking
- navigation.expand
- navigation.path
- navigation.indexes
- toc.follow
- content.action.edit

plugins:
- search
- markdownextradata

markdown_extensions:
# Python Markdown
- abbr
- admonition
- attr_list
- def_list
- footnotes
- meta
- md_in_html
- toc:
permalink: true
- tables

# Python Markdown Extensions
- pymdownx.arithmatex:
generic: true
- pymdownx.betterem:
smart_enable: all
- pymdownx.caret
- pymdownx.details
- pymdownx.emoji:
emoji_index: !!python/name:material.extensions.emoji.twemoji
emoji_generator: !!python/name:material.extensions.emoji.to_svg
- pymdownx.highlight
- pymdownx.inlinehilite
- pymdownx.keys
- pymdownx.mark
- pymdownx.smartsymbols
- pymdownx.superfences
- pymdownx.tabbed:
alternate_style: true
- pymdownx.tasklist:
custom_checkbox: true
- pymdownx.tilde

nav:
- Home: index.md
1 change: 1 addition & 0 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +33,5 @@ kotlin-compose = { id = "org.jetbrains.kotlin.plugin.compose", version.ref = "ko
kotlin-multiplatform = { id = "org.jetbrains.kotlin.multiplatform", version.ref = "kotlin" }
kotlin-serialization = { id = "org.jetbrains.kotlin.plugin.serialization", version.ref = "kotlin" }
maven-publish = { id = "com.vanniktech.maven.publish", version = "0.30.0" }
mkdocs = { id = "ru.vyarus.mkdocs-build", version = "4.0.1" }
spotless = { id = "com.diffplug.spotless", version = "7.0.0.BETA4" }

0 comments on commit bfa3910

Please sign in to comment.