Successfully build documentation and package in web

This commit is contained in:
Austen Adler 2023-03-11 18:40:29 -05:00
parent 4f1760b7d7
commit fb6604e19b
4 changed files with 15 additions and 6 deletions

View File

@ -10,6 +10,7 @@
== Pages
* link:..[xpin.app] - Go back to the xpin homepage
* link:ALGORITHM.html[ALGORITHM] - Algorithm definition
* link:DESIGN.html[DESIGN] - Algorithm design documentation
* link:WORDLIST.html[WORDLIST] - Wordlist design and implementation

View File

@ -1,6 +1,7 @@
build: fmt rust-build wasm-build js-build
build: fmt js-build
all: clean fmt build docs-build # rust-test
# Rust test needs to be built after because it depends on js-build
all: output-clean fmt build rust-build rust-test
rsync -ha ./web-frontend/build/ build/
du -shc build/* | sort -h
@ -10,6 +11,8 @@ rust-test:
rust-build:
cargo build --all
cargo build -p web --release --target x86_64-unknown-linux-musl
earthly +rust-image
wasm-build:
wasm-pack build --target web xpin-wasm
@ -22,7 +25,7 @@ js-build: wasm-build docs-build
# rsync -ha ./build/docs/ ./web-frontend/static/docs/
yarn --cwd ./web-frontend/ build
clean:
output-clean:
rm -vrf build
docs-build:

View File

@ -1,4 +1,4 @@
// From https://kit.svelte.dev/docs/migrating#integrations-html-minifier
// From https://kit.svelte.dev/docs/migrating#integrations-html-minifier
import { minify } from 'html-minifier';
import { building } from '$app/environment';

View File

@ -29,8 +29,13 @@
<div class="block">
<div class="text-sm">
<a href="/" class="block inline-block text-white hover:text-gray-500 mr-4 p-2"> Home </a>
<!-- TODO: Properly link -->
<a href="#" class="block inline-block text-white hover:text-gray-500 mr-4 p-2"> Docs </a>
<a
href="/docs"
rel="external"
class="block inline-block text-white hover:text-gray-500 mr-4 p-2"
>
Docs
</a>
<a href="/app" class="block inline-block text-white hover:text-gray-500 mr-4 p-2">
App
</a>