-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Squashed commit of the following from the
doc-site
branch:
commit b75fbf5 Author: Univa <41708691+Univa@users.noreply.github.com> Date: Sun Nov 26 13:41:00 2023 -0500 change the github action to only run on main commit 5ad2ad8 Author: Univa <41708691+Univa@users.noreply.github.com> Date: Sun Nov 26 13:40:36 2023 -0500 remove the .lock file in the rustdoc output commit b959119 Author: Univa <41708691+Univa@users.noreply.github.com> Date: Sun Nov 26 11:18:49 2023 -0500 run workflow if workflow is modified commit 8685c87 Author: Univa <41708691+Univa@users.noreply.github.com> Date: Sun Nov 26 11:14:26 2023 -0500 update rust-toolchain.toml with correct key for targets, and pinned nightly version commit 9cee29a Author: Univa <41708691+Univa@users.noreply.github.com> Date: Sun Nov 26 10:34:26 2023 -0500 add script to generate api docs commit 2cffaa7 Author: Univa <41708691+Univa@users.noreply.github.com> Date: Sun Nov 26 10:19:08 2023 -0500 add missing feature flag commit 326adde Author: Univa <41708691+Univa@users.noreply.github.com> Date: Sat Nov 25 21:33:17 2023 -0500 add missing feature flag commit d3180f5 Author: Univa <41708691+Univa@users.noreply.github.com> Date: Sat Nov 25 21:32:45 2023 -0500 add missing feature flag commit b34b364 Author: Univa <41708691+Univa@users.noreply.github.com> Date: Sat Nov 25 21:22:31 2023 -0500 fix typo commit 58d960b Author: Univa <41708691+Univa@users.noreply.github.com> Date: Sat Nov 25 00:47:48 2023 -0500 add action to deploy docs commit 6a4d55b Author: Univa <41708691+Univa@users.noreply.github.com> Date: Sat Nov 25 00:46:51 2023 -0500 force trailing slash, update links commit 6e0bca0 Author: Univa <41708691+Univa@users.noreply.github.com> Date: Fri Nov 24 16:11:57 2023 -0500 rewording commit bd2c738 Author: Univa <41708691+Univa@users.noreply.github.com> Date: Fri Nov 24 15:47:28 2023 -0500 add info about the `Keyboard` trait, change wording commit 831e220 Author: Univa <41708691+Univa@users.noreply.github.com> Date: Fri Nov 24 14:35:39 2023 -0500 remove relative link to the keycodes file commit 3a28a4c Author: Univa <41708691+Univa@users.noreply.github.com> Date: Fri Nov 24 14:16:31 2023 -0500 initial commit for user docs site
- Loading branch information
Showing
37 changed files
with
5,784 additions
and
508 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,66 @@ | ||
name: Deploy docs | ||
|
||
on: | ||
push: | ||
branches: [main] | ||
paths: | ||
- "docs/**" | ||
- "rumcake-macros/**" | ||
- "rumcake/**" | ||
- ".github/workflows/deploy-docs.yml" | ||
workflow_dispatch: | ||
|
||
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages | ||
permissions: | ||
contents: read | ||
pages: write | ||
id-token: write | ||
|
||
# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued. | ||
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete. | ||
concurrency: | ||
group: "pages" | ||
cancel-in-progress: false | ||
|
||
env: | ||
ASTRO_BUILD_PATH: "./docs" | ||
|
||
jobs: | ||
build: | ||
name: Build | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
|
||
- name: Setup Node | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: "18" | ||
cache: yarn | ||
cache-dependency-path: ${{ env.ASTRO_BUILD_PATH }}/yarn.lock | ||
|
||
- name: Install dependencies | ||
run: yarn install --frozen-lockfile | ||
working-directory: ${{ env.ASTRO_BUILD_PATH }} | ||
|
||
- name: Build with Astro | ||
run: yarn build | ||
working-directory: ${{ env.ASTRO_BUILD_PATH }} | ||
|
||
- name: Upload artifact | ||
uses: actions/upload-pages-artifact@v2 | ||
with: | ||
path: ${{ env.ASTRO_BUILD_PATH }}/dist | ||
|
||
deploy: | ||
environment: | ||
name: github-pages | ||
url: ${{ steps.deployment.outputs.page_url }} | ||
needs: build | ||
runs-on: ubuntu-latest | ||
name: Deploy | ||
steps: | ||
- name: Deploy to GitHub Pages | ||
id: deployment | ||
uses: actions/deploy-pages@v2 |
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,21 @@ | ||
# build output | ||
dist/ | ||
# generated types | ||
.astro/ | ||
|
||
# dependencies | ||
node_modules/ | ||
|
||
# logs | ||
npm-debug.log* | ||
yarn-debug.log* | ||
yarn-error.log* | ||
pnpm-debug.log* | ||
|
||
|
||
# environment variables | ||
.env | ||
.env.production | ||
|
||
# macOS-specific files | ||
.DS_Store |
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,60 @@ | ||
# rumcake user docs | ||
|
||
[![Built with Starlight](https://astro.badg.es/v2/built-with-starlight/tiny.svg)](https://starlight.astro.build) | ||
|
||
The following documentation was adapted from the Starlight template: | ||
|
||
``` | ||
npm create astro@latest -- --template starlight | ||
``` | ||
|
||
## Requirements | ||
|
||
This doc site is built using Astro's Starlight integration. | ||
|
||
To develop documentation, make sure you have: | ||
|
||
- Node.js (version 18+ should be fine) | ||
- [`yarn`](https://yarnpkg.com/) | ||
|
||
> [!NOTE] | ||
> This project uses `yarn` instead of `npm` for package management. | ||
## Project Structure | ||
|
||
``` | ||
. | ||
├── public/ | ||
├── src/ | ||
│ ├── assets/ | ||
│ ├── content/ | ||
│ │ ├── docs/ | ||
│ │ └── config.ts | ||
│ └── env.d.ts | ||
├── astro.config.mjs | ||
├── package.json | ||
└── tsconfig.json | ||
``` | ||
|
||
Starlight looks for `.md` or `.mdx` files in the `src/content/docs/` directory. Each file is exposed as a route based on its file name. | ||
|
||
Images can be added to `src/assets/` and embedded in Markdown with a relative link. | ||
|
||
Static assets, like favicons, can be placed in the `public/` directory. | ||
|
||
## Commands | ||
|
||
All commands are run from the root of the project, from a terminal: | ||
|
||
| Command | Action | | ||
| :----------------------- | :----------------------------------------------- | | ||
| `yarn install` | Installs dependencies | | ||
| `yarn dev` | Starts local dev server at `localhost:4321` | | ||
| `yarn build` | Build your production site to `./dist/` | | ||
| `yarn preview` | Preview your build locally, before deploying | | ||
| `yarn exec astro ...` | Run CLI commands like `astro add`, `astro check` | | ||
| `yarn exec astro --help` | Get help using the Astro CLI | | ||
|
||
## Want to learn more? | ||
|
||
Check out [Starlight’s docs](https://starlight.astro.build/), read [the Astro documentation](https://docs.astro.build), or jump into the [Astro Discord server](https://astro.build/chat). |
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,48 @@ | ||
import { defineConfig } from "astro/config"; | ||
import starlight from "@astrojs/starlight"; | ||
|
||
// https://astro.build/config | ||
export default defineConfig({ | ||
site: "https://univa.github.io", | ||
base: "/rumcake", | ||
trailingSlash: "always", | ||
build: { | ||
format: "directory", | ||
}, | ||
integrations: [ | ||
starlight({ | ||
title: "rumcake", | ||
lastUpdated: true, | ||
tableOfContents: { | ||
minHeadingLevel: 1, | ||
}, | ||
social: { | ||
github: "https://github.com/Univa/rumcake", | ||
}, | ||
pagination: false, | ||
sidebar: [ | ||
{ | ||
label: "Information", | ||
items: [ | ||
{ | ||
label: "Introduction", | ||
link: "/", | ||
}, | ||
], | ||
}, | ||
{ | ||
label: "Getting Started", | ||
autogenerate: { directory: "getting-started" }, | ||
}, | ||
{ | ||
label: "Features", | ||
autogenerate: { directory: "features" }, | ||
}, | ||
{ | ||
label: "API Reference", | ||
link: "api/", | ||
}, | ||
], | ||
}), | ||
], | ||
}); |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.