Skip to content

Commit

Permalink
chore: remove example crate (#6)
Browse files Browse the repository at this point in the history
* ci: fix docs workflow paths trigger

diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml
index d0badd1..798257a 100644
--- a/.github/workflows/docs.yml
+++ b/.github/workflows/docs.yml
@@ -2,7 +2,7 @@ name: docs
 on:
   push:
     branches: [main]
-    paths: ['src/**/*.rs', 'Cargo.toml', '.github/workflows/docs.yml']
+    paths: ['crates/**/*.rs', '**/Cargo.toml', '.github/workflows/docs.yml']
   workflow_dispatch:

 permissions:
@@ -22,8 +22,8 @@ jobs:
         run: |
           make build.docs
           # we need an index.html page (cargo doc doesn't create it)
-          # this will just redirect to target/doc/example/index.html
-          echo '<meta http-equiv="refresh" content="0;url=example/index.html">' > target/doc/index.html
+          # this will just redirect to target/doc/imt/index.html
+          echo '<meta http-equiv="refresh" content="0;url=imt/index.html">' > target/doc/index.html
       - uses: actions/upload-pages-artifact@v3
         with:
           path: target/doc

* chore: remove example crate
  • Loading branch information
sripwoud authored Jul 12, 2024
1 parent d3e8acc commit a170bf5
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 101 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: docs
on:
push:
branches: [main]
paths: ['src/**/*.rs', 'Cargo.toml', '.github/workflows/docs.yml']
paths: ['crates/**/*.rs', '**/Cargo.toml', '.github/workflows/docs.yml']
workflow_dispatch:

permissions:
Expand All @@ -22,8 +22,8 @@ jobs:
run: |
make build.docs
# we need an index.html page (cargo doc doesn't create it)
# this will just redirect to target/doc/example/index.html
echo '<meta http-equiv="refresh" content="0;url=example/index.html">' > target/doc/index.html
# this will just redirect to target/doc/imt/index.html
echo '<meta http-equiv="refresh" content="0;url=imt/index.html">' > target/doc/index.html
- uses: actions/upload-pages-artifact@v3
with:
path: target/doc
Expand Down
17 changes: 0 additions & 17 deletions crates/example/Cargo.toml

This file was deleted.

21 changes: 0 additions & 21 deletions crates/example/LICENSE

This file was deleted.

45 changes: 0 additions & 45 deletions crates/example/README.md

This file was deleted.

15 changes: 0 additions & 15 deletions crates/example/src/lib.rs

This file was deleted.

0 comments on commit a170bf5

Please sign in to comment.