Skip to content

Commit 4d8cf5e

Browse files
authored
chore: move docs and examples in to create a monorepo (blake-mealey#168)
* move content into subdir to prep for monorepo * copy docs site into monorepo * added the example repo to the monorepo * fixed examples links * fixed projects paths in examples * more fixes
1 parent 40b3701 commit 4d8cf5e

File tree

140 files changed

+15077
-206
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

140 files changed

+15077
-206
lines changed

.github/workflows/ci.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,16 @@ jobs:
2020
~/.cargo/registry/index/
2121
~/.cargo/registry/cache/
2222
~/.cargo/git/db/
23-
target/
23+
mantle/target/
2424
key: ${{ runner.os }}-ci-cargo-${{ hashFiles('**/Cargo.lock') }}
2525
- name: Build
26+
working-directory: mantle
2627
run: cargo build --locked --verbose
2728
- name: Run linters
29+
working-directory: mantle
2830
run: |
2931
cargo fmt -- --check
3032
cargo clippy -- -D warnings
3133
- name: Generate schema
34+
working-directory: mantle
3235
run: cargo run --bin gen_schema

.github/workflows/integration-tests.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,10 @@ jobs:
1616
~/.cargo/registry/index/
1717
~/.cargo/registry/cache/
1818
~/.cargo/git/db/
19-
target/
19+
mantle/target/
2020
key: ${{ runner.os }}-integration-cargo-${{ hashFiles('**/Cargo.lock') }}
2121
- name: Run integration tests
22+
working-directory: mantle
2223
run: cargo test --locked --test '*' -- --test-threads=1
2324
env:
2425
ROBLOSECURITY: ${{ secrets.INTEGRATION_TESTS_COOKIE }}

.github/workflows/release.yml

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -18,15 +18,16 @@ jobs:
1818
~/.cargo/registry/index/
1919
~/.cargo/registry/cache/
2020
~/.cargo/git/db/
21-
target/
21+
mantle/target/
2222
key: ${{ runner.os }}-release-cargo-${{ hashFiles('**/Cargo.lock') }}
2323
- name: Build release binary
24+
working-directory: mantle
2425
run: cargo build --verbose --locked --release
2526
- name: Zip binary
2627
uses: thedoctor0/[email protected]
2728
with:
2829
filename: mantle-win64.zip
29-
path: target/release/mantle.exe
30+
path: mantle/target/release/mantle.exe
3031
- name: Upload binary artifact
3132
uses: actions/upload-artifact@v2
3233
with:
@@ -43,11 +44,12 @@ jobs:
4344
~/.cargo/registry/index/
4445
~/.cargo/registry/cache/
4546
~/.cargo/git/db/
46-
target/
47+
mantle/target/
4748
key: ${{ runner.os }}-release-cargo-${{ hashFiles('**/Cargo.lock') }}
4849
- name: Install rust
4950
run: curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
5051
- name: Build release binary
52+
working-directory: mantle
5153
run: |
5254
source $HOME/.cargo/env
5355
cargo build --verbose --locked --release
@@ -57,7 +59,7 @@ jobs:
5759
uses: thedoctor0/[email protected]
5860
with:
5961
filename: mantle-macos.zip
60-
path: target/release/mantle
62+
path: mantle/target/release/mantle
6163
- name: Upload binary artifact
6264
uses: actions/upload-artifact@v2
6365
with:
@@ -74,29 +76,31 @@ jobs:
7476
~/.cargo/registry/index/
7577
~/.cargo/registry/cache/
7678
~/.cargo/git/db/
77-
target/
79+
mantle/target/
7880
key: ${{ runner.os }}-release-cargo-${{ hashFiles('**/Cargo.lock') }}
7981
- name: Build release binary
82+
working-directory: mantle
8083
run: cargo build --locked --verbose --release
8184
env:
8285
OPENSSL_STATIC: 1
8386
- name: Zip binary
8487
uses: thedoctor0/[email protected]
8588
with:
8689
filename: mantle-linux.zip
87-
path: target/release/mantle
90+
path: mantle/target/release/mantle
8891
- name: Upload binary artifact
8992
uses: actions/upload-artifact@v2
9093
with:
9194
name: mantle-linux
9295
path: mantle-linux.zip
9396
- name: Generate schema
97+
working-directory: mantle
9498
run: cargo run --release --bin gen_schema > schema.json
9599
- name: Upload schema artifact
96100
uses: actions/upload-artifact@v2
97101
with:
98102
name: schema
99-
path: schema.json
103+
path: mantle/schema.json
100104
release:
101105
runs-on: ubuntu-latest
102106
needs: [windows, macos, linux]

.gitignore

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,7 @@
1-
/target
2-
integration_tmp
1+
node_modules
32

43
*.env
54

6-
*.rbxl
7-
*.rbxlx
8-
*.rbxl.lock
9-
*.rbxlx.lock
10-
11-
*.png
12-
135
*.DS_Store
146

157
*.log

Cargo.toml

Lines changed: 0 additions & 14 deletions
This file was deleted.

README.md

Lines changed: 6 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -2,20 +2,11 @@
22

33
An infrastructure-as-code and deployment tool for Roblox.
44

5-
## Installation with Foreman
5+
This is a monorepo for the Mantle project. You can find further information about subprojects within the
6+
directories:
67

7-
It is recommended to install with Foreman, with the following config:
8+
- [mantle](mantle/README.md): the Mantle project itself.
9+
- [docs](docs/README.md): the docs site for the Mantle project.
10+
- [examples](examples/README.md): example Mantle projects.
811

9-
```toml
10-
# foreman.toml
11-
12-
[tools]
13-
mantle = { source = "blake-mealey/mantle", version = "0.11.3" }
14-
```
15-
16-
You can learn more about Foreman including how to install it from [its
17-
documentation](https://github.com/Roblox/foreman#readme).
18-
19-
## Documentation
20-
21-
Check out the [docs site](https://mantle-docs.vercel.app) for more info.
12+
For more information about the project, visit the [docs site](https://mantledeploy.vercel.app).

bump-version.ps1

Lines changed: 0 additions & 136 deletions
This file was deleted.

docs/.gitignore

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# Dependencies
2+
node_modules
3+
4+
# Production
5+
/build
6+
7+
# Generated files
8+
.docusaurus
9+
.cache-loader
10+
docs/configuration.md
11+
static/schemas
12+
13+
# Misc
14+
.DS_Store
15+
.env.local
16+
.env.development.local
17+
.env.test.local
18+
.env.production.local
19+
20+
npm-debug.log*
21+
yarn-debug.log*
22+
yarn-error.log*
23+
24+
# Dev
25+
/schema.json

docs/LICENSE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2022 Blake Mealey
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

docs/README.md

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# Mantle Docs
2+
3+
The [docs site](https://mantledeploy.vercel.app).
4+
5+
## Local development
6+
7+
Install:
8+
9+
```sh
10+
yarn install
11+
```
12+
13+
Build and watch the schema docs:
14+
15+
```sh
16+
yarn compile-template-docs:dev
17+
```
18+
19+
Build and watch the site:
20+
21+
```sh
22+
yarn dev
23+
```

0 commit comments

Comments
 (0)