Successfully build documentation and package in web
This commit is contained in:
parent
4f1760b7d7
commit
fb6604e19b
@ -10,6 +10,7 @@
|
|||||||
|
|
||||||
== Pages
|
== Pages
|
||||||
|
|
||||||
|
* link:..[xpin.app] - Go back to the xpin homepage
|
||||||
* link:ALGORITHM.html[ALGORITHM] - Algorithm definition
|
* link:ALGORITHM.html[ALGORITHM] - Algorithm definition
|
||||||
* link:DESIGN.html[DESIGN] - Algorithm design documentation
|
* link:DESIGN.html[DESIGN] - Algorithm design documentation
|
||||||
* link:WORDLIST.html[WORDLIST] - Wordlist design and implementation
|
* link:WORDLIST.html[WORDLIST] - Wordlist design and implementation
|
||||||
|
9
justfile
9
justfile
@ -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/
|
rsync -ha ./web-frontend/build/ build/
|
||||||
du -shc build/* | sort -h
|
du -shc build/* | sort -h
|
||||||
|
|
||||||
@ -10,6 +11,8 @@ rust-test:
|
|||||||
|
|
||||||
rust-build:
|
rust-build:
|
||||||
cargo build --all
|
cargo build --all
|
||||||
|
cargo build -p web --release --target x86_64-unknown-linux-musl
|
||||||
|
earthly +rust-image
|
||||||
|
|
||||||
wasm-build:
|
wasm-build:
|
||||||
wasm-pack build --target web xpin-wasm
|
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/
|
# rsync -ha ./build/docs/ ./web-frontend/static/docs/
|
||||||
yarn --cwd ./web-frontend/ build
|
yarn --cwd ./web-frontend/ build
|
||||||
|
|
||||||
clean:
|
output-clean:
|
||||||
rm -vrf build
|
rm -vrf build
|
||||||
|
|
||||||
docs-build:
|
docs-build:
|
||||||
|
@ -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 { minify } from 'html-minifier';
|
||||||
import { building } from '$app/environment';
|
import { building } from '$app/environment';
|
||||||
|
|
||||||
|
@ -29,8 +29,13 @@
|
|||||||
<div class="block">
|
<div class="block">
|
||||||
<div class="text-sm">
|
<div class="text-sm">
|
||||||
<a href="/" class="block inline-block text-white hover:text-gray-500 mr-4 p-2"> Home </a>
|
<a href="/" class="block inline-block text-white hover:text-gray-500 mr-4 p-2"> Home </a>
|
||||||
<!-- TODO: Properly link -->
|
<a
|
||||||
<a href="#" class="block inline-block text-white hover:text-gray-500 mr-4 p-2"> Docs </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">
|
<a href="/app" class="block inline-block text-white hover:text-gray-500 mr-4 p-2">
|
||||||
App
|
App
|
||||||
</a>
|
</a>
|
||||||
|
Loading…
Reference in New Issue
Block a user