Skip to content

Commit b058fff

Browse files
Merge pull request #4 from casper-network/dev
PR to deploy from main
2 parents 1d5204b + faa2e2d commit b058fff

File tree

2,153 files changed

+111280
-13178
lines changed

Some content is hidden

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

2,153 files changed

+111280
-13178
lines changed
+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
---
2+
name: Docs Feedback
3+
about: 'Please describe your feedback. Be as detailed as you can. If your feedback
4+
is about a specific page or area, please be sure to include a link. '
5+
title: "[DOCS FEEDBACK]"
6+
labels: ''
7+
assignees: ''
8+
9+
---
10+
11+

.github/ISSUE_TEMPLATE/feedback.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: Docs v2 Feedback Form
22
description: Use this form to give us feedback on Docs v2
3-
title: 'Docs Feedback'
3+
title: '[Docs-V2-Feedback]'
44
labels:
55
- docs-v2-feedback
66
body:
@@ -39,6 +39,6 @@ body:
3939
id: attachments
4040
attributes:
4141
label: Attachments (optional)
42-
description: Please attach any logs, screenshots, or links.
42+
description: Please attach any logs, screenshots, or links that may help with the analysis.
4343
validations:
44-
required: false
44+
required: false
+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
<!-- This is a template for any "Overview" page. It helps us keep the reader experience consistent. -->
2+
<!-- An "Overview" page ties multiple topics together in a subsection of the docs. -->
3+
<!-- This template can be used at any nested level in the docs where there is an "Overview" page. Delete any sections you feel aren't relevant. -->
4+
5+
# Overview
6+
7+
## What is X?
8+
9+
The main content of this page: include an overview of this section (all pages nested with and underneath this Overview) and replace "X" with the subject. This is especially useful for newer or less experienced developers, who might still be building a mental model.
10+
11+
## Quick Links
12+
13+
Users might already know where they want to go. To save time, include a list here of popular pages.
14+
15+
You can also link up to the Portal, to the Concepts docs, or externally to help explain this topic.
16+
+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
### What does this PR fix/introduce?
2+
// Add a brief description or bullet points about the changes introduced.
3+
// Include an issue number that is associated with this PR.
4+
5+
Closes #<enter issue>
6+
7+
### Additional context
8+
// Add further detail on the current situation, or what the PR seeks to address.
9+
// Include [loom](https://www.loom.com/), screenshots, or gifs([record](https://giphy.com/apps/giphycapture), [compress](https://gifcompressor.com/)) if helpful.
10+
11+
### Checklist
12+
(Delete any that aren't relevant)
13+
14+
- [ ] Docs are successfully building - `yarn install && yarn run build`.
15+
- [ ] For new **internal** links I used *relative file paths* (with .md extension) - e.g. `../../faq/faq-general.md` - instead of introducing *absolute file path*, or *relative/absolute URL*.
16+
- [ ] All external links have been verified with `yarn run check:externals`.
17+
- [ ] My changes follow the [Casper docs style guidelines](https://docs.casper.network/resources/contribute-to-docs/).
18+
- [ ] All technical procedures have been tested (if you want help with this, mention it in [Reviewers](#reviewers)).
19+
- [ ] If structural changes are introduced (not just content changes), cross-broswer testing has been completed.
20+
21+
### Reviewers
22+
// Tag whoever needs to review. If you're not sure, leave blank.
+58
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
<!-- This is a template to give you some rough structure for writing a tutorial. -->
2+
<!-- Using a template means anyone can contribute and the experience for users reading the tutorials remains as consistent as possible. -->
3+
<!-- However, feel free to delete anything irrelevant to your tutorial. -->
4+
<!-- If you need any help, tag our developer advocates or TW team. Thank you for contributing! -->
5+
6+
# Tutorial Title
7+
8+
## Overview
9+
Give a high-level overview of the tutorial. This helps the reader understand the scope of what they'll be doing end-to-end and potentially the basic architecture of what will speak to/interact with what.
10+
11+
If relevant, include what they'll have achieved or built by the end of this tutorial.
12+
13+
## Prerequisites
14+
15+
This can include:
16+
- [ ] Recommended hardware/software/local setup
17+
- [ ] Familiarity/experience with Rust, JavaScript, at a certain level
18+
- [ ] Completion of a prior tutorial or process
19+
- [ ] Accounts or logins
20+
- [ ] Anything else that is relevant
21+
22+
## Steps
23+
24+
### Step 1
25+
26+
Info here.
27+
28+
### Step 2
29+
30+
Info here.
31+
32+
## Troubleshooting
33+
34+
Advice on common questions or specific error messages that might pop up, or the support route if the user needs help.
35+
36+
## Next Steps
37+
38+
Further tutorials or docs to read once someone has successfully completed your tutorial.
39+
40+
## Things to Remember
41+
42+
### Tag your code snippets
43+
44+
Remember to add the language when including any code blocks. While not supported natively by markdown, many markdown engines (including the one used by GitHub) will support syntax highlighting, which is helpful for reviewers and future maintainers of your tutorial:
45+
46+
```
47+
```rust
48+
let (contract_hash, contract_version) =
49+
storage::add_contract_version(contract_package_hash,
50+
entry_points,
51+
named_keys);
52+
```
53+
```
54+
55+
56+
### Single or multi-page tutorial?
57+
58+
If your tutorial is long and you feel it would be easier to follow if split over multiple pages, create a folder and individual files, like this [Counter tutorial](../../source/docs/casper/resources/beginner/counter/index.md).

.github/workflows/branch-naming-policy.yml

-26
This file was deleted.

.github/workflows/build-dev.yaml

+33
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: (DEV) Trigger Internal Build Pipeline
2+
3+
on:
4+
push:
5+
branches:
6+
- dev
7+
8+
jobs:
9+
trigger-internal-build:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: Checkout Repository
13+
uses: actions/checkout@v4
14+
15+
- name: Extract Short Commit SHA
16+
id: short_sha
17+
run: |
18+
echo "short_sha=$(git rev-parse --short "$GITHUB_SHA")" >> $GITHUB_OUTPUT
19+
20+
- name: Trigger Internal Build Workflow
21+
uses: actions/github-script@v5
22+
with:
23+
github-token: ${{ secrets.PAT_TOKEN }}
24+
script: |
25+
await github.rest.actions.createWorkflowDispatch({
26+
owner: 'casper-network',
27+
repo: 'docs-infra',
28+
workflow_id: 'build-redux-dev.yaml',
29+
ref: 'main',
30+
inputs: {
31+
short_sha: '${{ steps.short_sha.outputs.short_sha }}'
32+
}
33+
});

.github/workflows/build-prod.yaml

+33
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: (PROD) Trigger Internal Build Pipeline
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
8+
jobs:
9+
trigger-internal-build:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: Checkout Repository
13+
uses: actions/checkout@v4
14+
15+
- name: Extract Short Commit SHA
16+
id: short_sha
17+
run: |
18+
echo "short_sha=$(git rev-parse --short "$GITHUB_SHA")" >> $GITHUB_OUTPUT
19+
20+
- name: Trigger Internal Build Workflow
21+
uses: actions/github-script@v5
22+
with:
23+
github-token: ${{ secrets.PAT_TOKEN }}
24+
script: |
25+
await github.rest.actions.createWorkflowDispatch({
26+
owner: 'casper-network',
27+
repo: 'docs-infra',
28+
workflow_id: 'build-redux-prod.yaml',
29+
ref: 'main',
30+
inputs: {
31+
short_sha: '${{ steps.short_sha.outputs.short_sha }}'
32+
}
33+
});

.github/workflows/build-stg.yaml

+33
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: (STG) Trigger Internal Build Pipeline
2+
3+
on:
4+
push:
5+
branches:
6+
- stg
7+
8+
jobs:
9+
trigger-internal-build:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: Checkout Repository
13+
uses: actions/checkout@v4
14+
15+
- name: Extract Short Commit SHA
16+
id: short_sha
17+
run: |
18+
echo "short_sha=$(git rev-parse --short "$GITHUB_SHA")" >> $GITHUB_OUTPUT
19+
20+
- name: Trigger Internal Build Workflow
21+
uses: actions/github-script@v5
22+
with:
23+
github-token: ${{ secrets.PAT_TOKEN }}
24+
script: |
25+
await github.rest.actions.createWorkflowDispatch({
26+
owner: 'casper-network',
27+
repo: 'docs-infra',
28+
workflow_id: 'build-redux-stg.yaml',
29+
ref: 'main',
30+
inputs: {
31+
short_sha: '${{ steps.short_sha.outputs.short_sha }}'
32+
}
33+
});

.gitignore

+19
Original file line numberDiff line numberDiff line change
@@ -128,3 +128,22 @@ dist
128128
.yarn/build-state.yml
129129
.yarn/install-state.gz
130130
.pnp.*
131+
132+
# Dependencies
133+
/node_modules
134+
135+
# Production
136+
build
137+
138+
# Generated files
139+
.docusaurus
140+
.cache-loader
141+
142+
# Misc
143+
.DS_Store
144+
npm-debug.log*
145+
yarn-debug.log*
146+
yarn-error.log*
147+
148+
.idea/
149+
CNAME
File renamed without changes.

README.md

+9-3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,10 @@
1-
## Version 2 of the casper documentation
1+
# Casper Network Documentation
2+
3+
## Overview
4+
5+
This is the documentation repository for the [Casper Network](https://casper.network/).
6+
7+
The documentation site itself may be viewed at this address: https://docs.casper.network/.
8+
9+
For instructions on how to build, run, edit and contribute to this documentation please refer to the [developer documentation](./README/INDEX.md).
210

3-
Preliminary hosting here:
4-
[https://casper-devrel.github.io/docs-redux/](https://casper-devrel.github.io/docs-redux/)

README/CONTRIBUTING.md

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
2+
### Updating existing content
3+
4+
1. Navigate to the `source/docs/casper` folder.
5+
2. Find the content you want to update and modify the markdown file(s). If you want to add new content, read the [Developer Guide](./DEVELOPERS.md) and the [Writing Style Guide](./writing-style-guide.md).
6+
3. [Run the website locally](#running-the-website-locally) to test your changes.
7+
4. Submit changes to the [documentation](https://github.com/casper-network/docs) using a pull request from your forked repository.
8+
9+
**Note**: The website refreshes as you change the markdown files. However, if you change the structure or configuration of the website, you need to restart the application.
10+
11+
### Adding new content
12+
13+
Adding new content may require structural changes. Read the [Developer Guide](./DEVELOPERS.md) and the [Writing Style Guide](./writing-style-guide.md).
File renamed without changes.

0 commit comments

Comments
 (0)