Skip to content

Commit c3ecca7

Browse files
authored
chore(docs): migrate Chainloop docs to the main repo (#568)
Signed-off-by: Daniel Liszka <[email protected]>
1 parent ddcb5c1 commit c3ecca7

File tree

132 files changed

+34865
-7
lines changed

Some content is hidden

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

132 files changed

+34865
-7
lines changed
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# Chainloop workflow associated with .github/workflows/deploy.yml
2+
# https://docs.chainloop.dev/reference/operator/contract
3+
schemaVersion: v1
4+
materials:
5+
- type: ARTIFACT
6+
name: built-site
7+
output: true
8+
- type: SBOM_CYCLONEDX_JSON
9+
name: sbom-cdx
10+
- type: SBOM_SPDX_JSON
11+
name: sbom-spdx
12+
runner:
13+
type: GITHUB_ACTION

.github/workflows/docs_deploy.yml

Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
name: Deploy Documentation
2+
3+
on:
4+
push:
5+
tags: ['v*.*.*']
6+
workflow_dispatch:
7+
8+
# Limit to a single workflow
9+
concurrency: "deploy-to-prod"
10+
11+
jobs:
12+
deploy_docs:
13+
name: Deploy Documentation
14+
runs-on: ubuntu-latest
15+
defaults:
16+
run:
17+
working-directory: ./docs
18+
steps:
19+
- uses: actions/checkout@v3
20+
with:
21+
sparse-checkout: |
22+
docs
23+
sparse-checkout-cone-mode: false
24+
25+
- name: Install Syft
26+
run: |
27+
# Install Syft
28+
wget --no-verbose https://raw.githubusercontent.com/anchore/syft/main/install.sh -O - | sh -s -- -b /usr/local/bin
29+
30+
- uses: actions/setup-node@v3
31+
with:
32+
node-version: 18
33+
34+
- name: yarn install
35+
run: yarn install
36+
37+
- name: Build
38+
run: netlify build
39+
40+
- name: Deploy
41+
run: netlify deploy --prod
42+
43+
- name: Generate reports
44+
run: |
45+
mkdir -p reports
46+
syft packages . -o cyclonedx-json --file reports/sbom.cyclonedx.json
47+
syft packages . -o spdx-json --file reports/sbom.spdx.json
48+
tar -czf reports/build.tar.gz build
49+
50+
# Upload artifacts so they are shared with the chainloop job
51+
- uses: actions/upload-artifact@a8a3f3ad30e3422c9c7b888a15615d19a852ae32 # v3.1.3
52+
with:
53+
name: reports
54+
path: docs/reports/*
55+
56+
env:
57+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
58+
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}
59+
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }}

.github/workflows/docs_test.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: Documentation Build and Test
2+
on:
3+
pull_request:
4+
paths: ['docs/**']
5+
push:
6+
branches: ['main']
7+
paths: ['docs/**']
8+
jobs:
9+
docs_build_and_test:
10+
name: Documentation Build and Test
11+
runs-on: ubuntu-latest
12+
defaults:
13+
run:
14+
working-directory: ./docs
15+
steps:
16+
- uses: actions/checkout@v3
17+
with:
18+
sparse-checkout: |
19+
docs
20+
sparse-checkout-cone-mode: false
21+
- uses: actions/setup-node@v3
22+
with:
23+
node-version: 18
24+
- name: yarn install & build
25+
run: yarn install && yarn build
26+

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -30,25 +30,25 @@ See the [getting started guide](https://docs.chainloop.dev/getting-started/insta
3030
To **install the latest version** for macOS, Linux or Windows (using [WSL](https://learn.microsoft.com/en-us/windows/wsl/install)) just choose one of the following installation methods.
3131

3232
```bash
33-
curl -sfL https://raw.githubusercontent.com/chainloop-dev/docs/main/static/install.sh | bash -s
33+
curl -sfL https://raw.githubusercontent.com/chainloop-dev/chainloop/main/docs/static/install.sh | bash -s
3434
```
3535

3636
you can retrieve a specific version with
3737

3838
```bash
39-
curl -sfL https://raw.githubusercontent.com/chainloop-dev/docs/main/static/install.sh | bash -s -- --version v0.8.95
39+
curl -sfL https://raw.githubusercontent.com/chainloop-dev/chainloop/main/docs/static/install.sh | bash -s -- --version v0.8.95
4040
```
4141

4242
and customize the install path (default to /usr/local/bin)
4343

4444
```bash
45-
curl -sfL https://raw.githubusercontent.com/chainloop-dev/docs/main/static/install.sh | bash -s -- --path /my-path
45+
curl -sfL https://raw.githubusercontent.com/chainloop-dev/chainloop/main/docs/static/install.sh | bash -s -- --path /my-path
4646
```
4747

4848
if [`cosign`](https://docs.sigstore.dev/cosign) is present in your system, in addition to the checksum check, a signature verification will be performed. This behavior can be enforced via the `--force-verification` flag.
4949

5050
```bash
51-
curl -sfL https://raw.githubusercontent.com/chainloop-dev/docs/main/static/install.sh | bash -s -- --force-verification
51+
curl -sfL https://raw.githubusercontent.com/chainloop-dev/chainloop/main/docs/static/install.sh | bash -s -- --force-verification
5252
```
5353

5454
### Deploy Chainloop (optional)
@@ -109,7 +109,7 @@ Operators can set up third-party integrations such as [Dependency-Track](https:/
109109

110110
Ops can mix and match with different integrations while **not requiring developers to make any changes on their side**!
111111

112-
To learn more and to find the list of available integrations, check our [integrations page](./docs/integrations.md).
112+
To learn more and to find the list of available integrations, check our [integrations page](./devel/integrations.md).
113113

114114
### Role-tailored experience
115115

app/controlplane/plugins/sdk/readme-generator/main.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
// See the License for the specific language governing permissions and
1414
// limitations under the License.
1515

16-
//go:generate go run main.go --dir ../../core --integrations-index-path ../../../../../docs/integrations.md
16+
//go:generate go run main.go --dir ../../core --integrations-index-path ../../../../../devel/integrations.md
1717

1818
package main
1919

@@ -162,7 +162,7 @@ func main() {
162162

163163
func init() {
164164
flag.StringVar(&pluginsDir, "dir", "", "base directory for plugins i.e ./core")
165-
flag.StringVar(&integrationsIndexPath, "integrations-index-path", "", "integrations list markdown file i.e docs/integrations.md")
165+
flag.StringVar(&integrationsIndexPath, "integrations-index-path", "", "integrations list markdown file i.e devel/integrations.md")
166166
flag.Parse()
167167
}
168168

File renamed without changes.

docs/.gitignore

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

docs/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
### Source code for [docs.chainloop.dev](https://docs.chainloop.dev) built using [Docusaurus](https://docusaurus.io/)

docs/babel.config.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
module.exports = {
2+
presets: [require.resolve('@docusaurus/core/lib/babel/preset')],
3+
};

docs/docs/beta-testing.md

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
---
2+
sidebar_position: 7
3+
---
4+
5+
# Beta Testers
6+
7+
:::caution
8+
Chainloop is under active development, please don't use it as part of your critical infrastructure until it reaches the 1.0 release.
9+
:::
10+
11+
First of all, **thank you for trying out Chainloop**! Although we are in the early stages, we are hungry for feedback so **your contribution as an early user is invaluable**.
12+
13+
If you have chosen to giving Chainloop a try, this page is for you. It will contain tips, caveats and other pieces of information related to the beta testing process.
14+
15+
### CLI graceful exit
16+
17+
Although Chainloop is under active development, we want you to try it out and integrate it into your CI/CD systems safely.
18+
19+
That's why the `attestation` subcommand will **by default exit 0** in the case of an error. This option will make sure that your CI/CD pipelines will keep working during potential transient errors.
20+
21+
If you feel adventurous and want to make sure that the attestation process is finished correctly, you can override this behavior by setting the flag `--graceful-exit=false`
22+
23+
```bash
24+
$ chainloop att
25+
Usage:
26+
chainloop attestation [command]
27+
28+
Aliases:
29+
attestation, att
30+
31+
Available Commands:
32+
...
33+
34+
Flags:
35+
# highlight-next-line
36+
--graceful-exit exit 0 in case of error. NOTE: this behavior will change once 1.0 is reached (default true)
37+
```
38+
39+
### Contact/Feedback
40+
41+
We would love to hear from you, any thoughts, requests, issues your encountered, or even compliments :)
42+
43+
Please send those our way through [this contact form](https://chainloop.dev/contact) or [email](mailto:[email protected]).

0 commit comments

Comments
 (0)