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

Initial Tutorial info #29

Merged
merged 14 commits into from
Aug 28, 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
5 changes: 5 additions & 0 deletions .codespellrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
[codespell]
skip = .git,target,node_modules,dist,*.yaml,*.lock,./book/book,*.min.js
ignore-words-list = implementor,implementors,ser,crate
count =
quiet-level = 3
29 changes: 29 additions & 0 deletions .github/workflows/book.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: publish-tutorial

on:
push:
branches:
- main

jobs:
tutorial:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- uses: DeterminateSystems/nix-installer-action@main
- uses: DeterminateSystems/magic-nix-cache-action@main
- uses: DeterminateSystems/flake-checker-action@main

- name: Build Tutorial
run: |
nix develop --command mdbook-admonish install book
nix develop --command mdbook-mermaid install book
nix develop --command mdbook build book

- uses: JamesIves/[email protected]
with:
token: ${{ secrets.GITHUB_TOKEN }}
branch: gh-pages
folder: ./book/book
clean: true
13 changes: 6 additions & 7 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,11 @@ jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3

- name: Setup
uses: ./.github/workflows/setup
- uses: DeterminateSystems/nix-installer-action@main
- uses: DeterminateSystems/magic-nix-cache-action@main
- uses: DeterminateSystems/flake-checker-action@main

- name: Argus tests
uses: actions-rs/cargo@v1
with:
command: test
- name: Argus Test
run: nix develop --command ci-check
44 changes: 19 additions & 25 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,37 +10,31 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions-rs/[email protected]
with:
crate: cargo-workspaces
version: latest
use-tool-cache: true
- name: Setup
uses: ./.github/workflows/setup
- run: cargo ws publish skip --no-remove-dev-deps --from-git --yes --token ${{ secrets.CRATES_IO }}
- uses: DeterminateSystems/nix-installer-action@main
- uses: DeterminateSystems/magic-nix-cache-action@main
- uses: DeterminateSystems/flake-checker-action@main
- run: nix develop --command \
cargo ws publish skip --no-remove-dev-deps --from-git --yes --token ${{ secrets.CRATES_IO }}

publish-ide:
runs-on: ubuntu-latest
needs: publish-crates
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v4
with:
node-version: 20

- name: Setup
uses: ./.github/workflows/setup
- uses: DeterminateSystems/nix-installer-action@main
- uses: DeterminateSystems/magic-nix-cache-action@main
- uses: DeterminateSystems/flake-checker-action@main

- name: Publish to Open VSX Registry
uses: HaaLeo/publish-vscode-extension@v1
id: publishToOpenVSX
with:
pat: ${{ secrets.OVSX_MRKT }}
packagePath: "./ide/packages/extension"
- name: Build TS bindings
run: nix develop --command cargo make init-bindings

- name: Publish to Visual Studio Marketplace
uses: HaaLeo/publish-vscode-extension@v1
with:
pat: ${{ secrets.VSCODE_MRKT }}
registryUrl: https://marketplace.visualstudio.com
packagePath: "./ide/packages/extension"
- name: Depot Setup
run: nix develop --command depot setup

- name: Publish Extension
run: |
cd ide/packages/extension
nix develop --command vsce package
nix develop --command vsce publish -p ${{ secrets.VSCODE_MRKT }} --packagePath argus-*.vsix
nix develop --command pnpx ovsx publish argus-*.vsix -p ${{ secrets.OVSX_MRKT }}
33 changes: 0 additions & 33 deletions .github/workflows/setup/action.yml

This file was deleted.

1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ gha-creds-*.json
/org/meeting*
/org/*.png
/org/media/
sample-book/

# Rust things
target/
Expand Down
3 changes: 3 additions & 0 deletions book/.gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,4 @@
book
mdbook-admonish.css
mermaid-init.js
mermaid.min.js
16 changes: 16 additions & 0 deletions book/book.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,20 @@ src = "src"
title = "Argus: a trait debugger for Rust"

[output.html]
default-theme = "light"

curly-quotes = true
additional-js = ["mermaid.min.js", "mermaid-init.js"]
additional-css = ["./mdbook-admonish.css"]

[preprocessor]

[preprocessor.image-size]
command = "mdbook-image-size"

[preprocessor.mermaid]
command = "mdbook-mermaid"

[preprocessor.admonish]
command = "mdbook-admonish"
assets_version = "3.0.2" # do not edit: managed by `mdbook-admonish install`
11 changes: 3 additions & 8 deletions book/src/SUMMARY.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,9 @@

[Introduction](README.md)

- [Debugging trait errors](debug-media.md)
<!-- - [Whirlwind Tour](whirlwind.md) -->

- [How to think about Argus]()
- [Trait Debugging 101](trait-debugging-101.md)

- [Debug a Bevy game]()
- [Trait Methods and Typestate](typestate.md)

- [Debug an Axum server]()

- [Debug async Rust]()

- [Debug stack overflows]()
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added book/src/assets/diesel-bad-select/find-bug.mp4
Binary file not shown.
Binary file added book/src/assets/diesel-bad-select/fixed-error.mp4
Binary file not shown.
Binary file removed book/src/assets/simple-workspace/argus-toolbar.png
Binary file not shown.
Binary file not shown.
Binary file removed book/src/assets/simple-workspace/fix-error.mp4
Binary file not shown.
Binary file removed book/src/assets/simple-workspace/impl-block.mp4
Binary file not shown.
Binary file removed book/src/assets/simple-workspace/jump-to-error.mp4
Binary file not shown.
Binary file removed book/src/assets/simple-workspace/open-to-tree.mp4
Binary file not shown.
Binary file removed book/src/assets/simple-workspace/top-down.mp4
Binary file not shown.
Binary file removed book/src/assets/simple-workspace/tree-ico.png
Binary file not shown.
Loading
Loading