Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

First version of mkdocs page #14

Merged
merged 2 commits into from
Mar 21, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
63 changes: 63 additions & 0 deletions .github/workflows/deploy-docs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
name: Deploy docs

on:
push:
branches:
- main

permissions:
contents: read
pages: write
id-token: write

jobs:
deploy_docs:

runs-on: macos-14

environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}

steps:
- uses: actions/checkout@v4
with:
lfs: 'true'

- name: Setup JDK 17
uses: actions/setup-java@v4
with:
java-version: '17'
distribution: 'temurin'

- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: '3.x'

- name: Setup Pages
uses: actions/configure-pages@v4

- name: Install dependencies
run: |
python3 -m pip install --upgrade pip
python3 -m pip install mkdocs mkdocs-material mkdocs-video "mkdocs-material[imaging]"

- uses: gradle/gradle-build-action@v3

- run: ./gradlew :dokkaHtmlMultiModule --no-configuration-cache

- name: Build site
run: mkdocs build

- name: Copy Dokka output to site
run: cp -r build/dokka/htmlMultiModule/ site/api/

- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: 'site'

- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,4 @@
.cxx
local.properties
/.idea/
/site/
1 change: 1 addition & 0 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,5 @@ plugins {
alias(libs.plugins.androidApplication) apply false
alias(libs.plugins.androidLibrary) apply false
alias(libs.plugins.kotlin) apply false
alias(libs.plugins.dokka)
}
Empty file added docs/index.md
Empty file.
23 changes: 23 additions & 0 deletions mkdocs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
site_name: Navigation Compose Extended
site_description: 'A collection of classes and functions to simplify the use of Jetpack Navigation Compose.'
site_author: 'Sergio Belda'
site_url: 'https://serbelga.github.io/navigation-compose-extended/'
edit_uri: 'tree/main/docs/'
remote_branch: gh-pages

repo_name: 'navigation-compose-extended'
repo_url: 'https://github.com/serbelga/navigation-compose-extended'

docs_dir: docs

nav:
- 'Overview': index.md
- 'API Reference': api/
- 'Sample App': https://github.com/serbelga/navigation-compose-extended/tree/main/sample-app

theme:
name: 'material'
palette:
primary: 'black'
icon:
logo: material/navigation