Skip to content

Commit

Permalink
cargo doc to GitHub Pages
Browse files Browse the repository at this point in the history
  • Loading branch information
ciscorn committed Dec 14, 2023
1 parent dbc166a commit a81a76c
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 2 deletions.
24 changes: 23 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,5 +30,27 @@ 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

- 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
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 a81a76c

Please sign in to comment.