-
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
81c1f44
commit d792ff6
Showing
35 changed files
with
851 additions
and
194 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
[build] | ||
rustdocflags = ["--extend-css=assets/docs.css", "--default-theme=ayu"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
name: Docs | ||
on: | ||
push: | ||
branches: | ||
- main | ||
pull_request: | ||
|
||
concurrency: | ||
group: docs | ||
cancel-in-progress: false | ||
|
||
|
||
|
||
jobs: | ||
build: | ||
name: Build | ||
runs-on: ubuntu-latest | ||
permissions: | ||
contents: read | ||
deployments: write | ||
steps: | ||
- name: Checkout Project | ||
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4 | ||
|
||
- name: Stable Rust | ||
uses: actions-rs/toolchain@v1 | ||
with: | ||
profile: minimal | ||
toolchain: stable | ||
|
||
- name: Cargo Cache | ||
uses: actions/cache@v4 | ||
with: | ||
path: | | ||
~/.cargo/bin/ | ||
~/.cargo/registry/index/ | ||
~/.cargo/registry/cache/ | ||
~/.cargo/git/db/ | ||
target/ | ||
key: ${{ runner.os }}-cargo-debug-${{ hashFiles('**/Cargo.lock') }} | ||
|
||
- name: Clean docs folder | ||
run: cargo clean --doc | ||
|
||
- name: Build docs | ||
run: cargo doc --no-deps | ||
|
||
- name: Add redirect | ||
run: echo '<meta http-equiv="refresh" content="0;url=autopulse/index.html">' > target/doc/index.html | ||
|
||
- name: Remove lock file | ||
run: rm target/doc/.lock | ||
|
||
- name: Publish to Cloudflare Pages | ||
uses: dan-online/pages-action@main | ||
with: | ||
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }} | ||
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }} | ||
projectName: autopulse | ||
directory: target/doc | ||
gitHubToken: ${{ secrets.GITHUB_TOKEN }} | ||
productionBranch: main |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
#trait-implementations, | ||
#trait-implementations-list, | ||
#synthetic-implementations, | ||
#synthetic-implementations-list, | ||
#blanket-implementations, | ||
#blanket-implementations-list, | ||
#implementations, | ||
#implementations-list, | ||
#traits, | ||
#traits-list, | ||
.trait-implementation, | ||
h3>[href="#trait-implementations"], | ||
.synthetic-implementation, | ||
h3>[href="#synthetic-implementations"], | ||
.blanket-implementation, | ||
h3>[href="#blanket-implementations"], | ||
h2#traits+ul { | ||
display: none | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
/// Handles connections to multiple database engines | ||
pub mod conn; | ||
/// Handles database migrations | ||
/// | ||
/// Note: All migrations are ran automatically when the application starts | ||
pub mod migration; | ||
/// Database models | ||
pub mod models; | ||
|
||
#[doc(hidden)] | ||
pub mod schema; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.