Skip to content

Commit

Permalink
Rustdoc to GitHub Pages (#68)
Browse files Browse the repository at this point in the history
Rustdoc (`cargo doc --no-deps`) で生成されるドキュメントを、GitHub Pagesにアップロードします。

main ブランチに push されたきにトリガされます。

:warning: GitHub Pages にアップロードされたものはパブリックに閲覧可能です。

Closes #66
  • Loading branch information
ciscorn committed Dec 27, 2023
1 parent 76c5ae6 commit 3821410
Show file tree
Hide file tree
Showing 4 changed files with 49 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,5 +30,5 @@ jobs:
sudo apt install -y libwebkit2gtk-4.0-dev libgtk-3-dev libayatana-appindicator3-dev librsvg2-dev
- name: Make Tauri build destination
run: mkdir -p app/build
- name: Build
- name: Build App
run: cargo build --verbose --package app
44 changes: 44 additions & 0 deletions .github/workflows/doc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: Docs

on:
push:
branches:
- main

env:
CARGO_TERM_COLOR: always

permissions:
contents: read

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Rustup
run: rustup toolchain install stable --profile minimal
- name: install dependencies
run: |
sudo apt-get update
sudo apt install -y libwebkit2gtk-4.0-dev libgtk-3-dev libayatana-appindicator3-dev librsvg2-dev
- name: Build Doc
run: cargo doc --no-deps
- name: Upload Doc
uses: actions/upload-pages-artifact@v1
with:
path: target/doc

pages:
needs: build
permissions:
pages: write
id-token: write
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v3
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,10 @@
[![Test Tauri App](https://github.com/MIERUNE/nusamai/actions/workflows/test_app.yml/badge.svg)](https://github.com/MIERUNE/nusamai/actions/workflows/test_app.yml)
[![Test Libraries](https://github.com/MIERUNE/nusamai/actions/workflows/test_libs.yml/badge.svg)](https://github.com/MIERUNE/nusamai/actions/workflows/test_libs.yml)
[![codecov](https://codecov.io/gh/MIERUNE/nusamai/graph/badge.svg?token=oa62wDWoqu)](https://codecov.io/gh/MIERUNE/nusamai)
[![Docs](https://github.com/MIERUNE/nusamai/actions/workflows/doc.yml/badge.svg)](https://mierune.github.io/nusamai/app/)

Notion: [BRIDGE 都市デジタルツイン・GISコンバータの開発](https://www.notion.so/mierune/BRIDGE-GIS-461ba0355b3041619ed3f303a8b0166f)
- Notion: [BRIDGE 都市デジタルツイン・GISコンバータの開発](https://www.notion.so/mierune/BRIDGE-GIS-461ba0355b3041619ed3f303a8b0166f)
- Rustdoc: https://mierune.github.io/nusamai/app/

## リポジトリ構成

Expand Down
2 changes: 1 addition & 1 deletion nusamai-plateau/citygml/src/namespace.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ use quick_xml::name::{Namespace, ResolveResult};

/// Normalize a XML namaespace URI to a well-known prefix.
///
/// e.g. "http://www.opengis.net/citygml/2.0" -> "core:"
/// e.g. `"http://www.opengis.net/citygml/2.0"` -> `"core:"`
pub fn normalize_ns_prefix<'a>(ns: &ResolveResult<'a>) -> &'a [u8] {
match ns {
ResolveResult::Bound(Namespace(name)) => {
Expand Down

0 comments on commit 3821410

Please sign in to comment.