Skip to content

Commit 073a357

Browse files
committed
Merge branch 'release/0.1.0-beta.2'
2 parents 7a63825 + 64be2bd commit 073a357

File tree

13 files changed

+693
-689
lines changed

13 files changed

+693
-689
lines changed

.env

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
SITE_ROOT=https://docs.dorafactory.org
1+
NEXT_PUBLIC_SITE_ROOT=https://docs.dorafactory.org

.env.development

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
SITE_ROOT=http://localhost:3000
1+
NEXT_PUBLIC_SITE_ROOT=http://localhost:3000

CHANGELOG.md

Lines changed: 34 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,33 @@
11
# CHANGELOG
22

3-
## [0.1.0-beta.1][0.1.0-beta.1] · 2023-09-23
3+
## [0.1.0-beta.2][0.1.0-beta.2] · 2023-10-04
4+
5+
### Added
6+
7+
### Changed
8+
9+
- Refactor: Prefix `SITE_ROOT` with `NEXT_PUBLIC_` to streamline environment variable configuration.
10+
- Reference: https://nextjs.org/docs/pages/building-your-application/configuring/environment-variables#bundling-environment-variables-for-the-browser
11+
- Perf: Optimize CLS for Nextra Card images.
12+
- Reference: https://web.dev/optimize-cls/
13+
- Docs: Streamline and reword for README.
14+
- Build: Update deps to latest versions.
15+
- `next`: 13.5.4
16+
- `nextra`: 2.13.1
17+
- `nextra-theme-docs`: 2.13.1
18+
- Build: Update devDeps to latest versions.
19+
- `@types/node`: 20.8.2
20+
- `@types/react`: 18.2.24
21+
- `eslint-config-next`: 13.5.4
22+
- `postcss`: 8.4.31
23+
- `prettier-plugin-tailwindcss`: 0.5.5
24+
25+
### Fixed
26+
27+
- Fix: Change preparation of DORA token amount from `20` into `5` in Vota Operator Manual.
28+
- Fix: Fix `--gas-prices` and `--gas-adjustment` values for commands in Vota Dev Guide.
29+
30+
## [0.1.0-beta.1][0.1.0-beta.1] · 2023-09-24
431

532
### Added
633

@@ -19,7 +46,7 @@
1946

2047
### Fixed
2148

22-
- Fix: Change Node.js version from `18+` into `18.x`.
49+
- Fix: Change Node.js version from `18+` into `18.x` in Vota Operator Manual.
2350
- Fix: Attach `alt` attribution onto the image in Deploy MACI button for better a11y.
2451

2552
## [0.1.0-beta][0.1.0-beta] · 2023-09-21
@@ -61,12 +88,13 @@
6188
- Feat: Adaptive favicon and Apple touch icon.
6289
- Feat: Dynamic page title, description, and Open Graph metadata.
6390
- Feat: Auto-generated OG images for each page, based on `@vercel/og` with Vercel Edge Functions.
64-
- Doc: [Read Me](README.md).
65-
- Doc: [Changelog](CHANGELOG.md).
66-
- Doc: [MIT License](LICENSE).
67-
- Doc: [Code of Conduct](CODE_OF_CONDUCT.md), based on [Contributor Covenant](https://www.contributor-covenant.org) v2.1.
91+
- Docs: [Read Me](README.md).
92+
- Docs: [Changelog](CHANGELOG.md).
93+
- Docs: [MIT License](LICENSE).
94+
- Docs: [Code of Conduct](CODE_OF_CONDUCT.md), based on [Contributor Covenant](https://www.contributor-covenant.org) v2.1.
6895
- Chore: Configure GitHub [Dependabot](.github/dependabot.yml).
6996

97+
[0.1.0-beta.2]: https://github.com/DoraFactory/df-docs/compare/0.1.0-beta.1...0.1.0-beta.2
7098
[0.1.0-beta.1]: https://github.com/DoraFactory/df-docs/compare/0.1.0-beta...0.1.0-beta.1
7199
[0.1.0-beta]: https://github.com/DoraFactory/df-docs/compare/0.1.0-alpha...0.1.0-beta
72100
[0.1.0-alpha]: https://github.com/DoraFactory/df-docs/compare/eacf593...0.1.0-alpha

README.md

Lines changed: 6 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55

66
## Links
77

8-
- Production (`main`):<https://docs.dorafactory.org>
9-
- Preview (`develop`):<https://df-docs.vercel.app>
8+
- Stable (`main`):<https://docs.dorafactory.org>
9+
- Canary Preview (`develop`):<https://df-docs.vercel.app>
1010

1111
## Conventions
1212

@@ -62,19 +62,10 @@ pnpm prettier
6262

6363
The Open Graph image generation API [`/api/og`](pages/api/og.tsx), which uses [`@vercel/og`](https://vercel.com/docs/functions/edge-functions/og-image-generation) library, is dependent on [Vercel Edge Functions](https://vercel.com/docs/functions/edge-functions).
6464

65-
### Production
65+
### Stable
6666

67-
The production branch is [`main`](https://github.com/github/renaming).
67+
The [Stable](https://docs.dorafactory.org) version of the documentation corresponds to the [`main`](https://github.com/DoraFactory/df-docs/tree/main) branch.
6868

69-
### Preview
69+
### Canary Preview
7070

71-
The preview site is deployed by [Vercel](https://vercel.com/).
72-
73-
- Default preview branch: `develop`
74-
- Preview link: <https://df-docs.vercel.app>
75-
76-
### Preview per commit/branch
77-
78-
Vercel will automatically deploy every latest commit, and assign a unique preview URL.
79-
80-
The same applies for every branch (`df-docs-git-[branch-name]-realfish.vercel.app`). As for the latest preview of a specific branch, e.g., `feature/landing-page`, the URL is <https://df-docs-git-feature-landing-page-realfish.vercel.app>.
71+
The [Canary Preview](https://df-docs.vercel.app) version corresponds to the [`develop`](https://github.com/DoraFactory/df-docs/tree/develop) branch, which is deployed via [Vercel](https://vercel.com/).

next.config.js

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,6 @@ module.exports = withNextra({
1212
reactStrictMode: true, // Recommended for the `pages` directory, default in `app`.
1313
output: 'standalone',
1414

15-
env: {
16-
SITE_ROOT: process.env.SITE_ROOT
17-
},
18-
1915
webpack(config) {
2016
// Config for SVGR
2117
// const allowedSvgRegex = /\.svg$/i

package.json

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "df-docs",
3-
"version": "0.1.0-beta.1",
3+
"version": "0.1.0-beta.2",
44
"private": true,
55
"scripts": {
66
"build": "next build",
@@ -12,23 +12,23 @@
1212
},
1313
"dependencies": {
1414
"@vercel/og": "^0.5.17",
15-
"next": "^13.5.2",
16-
"nextra": "^2.13.0",
17-
"nextra-theme-docs": "^2.13.0",
15+
"next": "^13.5.4",
16+
"nextra": "^2.13.1",
17+
"nextra-theme-docs": "^2.13.1",
1818
"react": "^18.2.0",
1919
"react-dom": "^18.2.0"
2020
},
2121
"devDependencies": {
2222
"@svgr/webpack": "^8.1.0",
23-
"@types/node": "20.6.4",
24-
"@types/react": "^18.2.22",
23+
"@types/node": "20.8.2",
24+
"@types/react": "^18.2.24",
2525
"autoprefixer": "^10.4.16",
2626
"eslint": "8.50.0",
27-
"eslint-config-next": "13.5.2",
28-
"postcss": "^8.4.30",
27+
"eslint-config-next": "13.5.4",
28+
"postcss": "^8.4.31",
2929
"prettier": "3.0.3",
3030
"prettier-plugin-pkg": "0.18.0",
31-
"prettier-plugin-tailwindcss": "0.5.4",
31+
"prettier-plugin-tailwindcss": "0.5.5",
3232
"sass": "^1.68.0",
3333
"tailwindcss": "^3.3.3",
3434
"typescript": "5.2.2"

pages/docs/index.mdx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,10 @@ export const CARD_COPY = [
4141
<Cards.Card key={i} image arrow title={card.title} href={card.url}>
4242
<>
4343
<img
44+
with="1200"
45+
height="628"
4446
alt={card.title}
45-
src={`${process.env.SITE_ROOT}/api/og?title=${card.title}&desc=${card.desc}`}
47+
src={`${process.env.NEXT_PUBLIC_SITE_ROOT}/api/og?title=${card.title}&desc=${card.desc}`}
4648
/>
4749
</>
4850
</Cards.Card>

pages/docs/vota-dev/cosmwasm.mdx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ In this example, we will demonstrate how to store on the Mainnet:
209209

210210
```ansi filename="Terminal"
211211
$ cd artifacts
212-
$ dorad tx wasm store counter.wasm --from <unsafe-test-key-name> --chain-id=<chain-id> --gas-prices 0.1uDORA --gas auto --gas-adjustment 1.3 -b block -y
212+
$ dorad tx wasm store counter.wasm --from <unsafe-test-key-name> --chain-id=<chain-id> --gas-prices 100000000000peaka --gas auto --gas-adjustment 1.5 -b block -y
213213
```
214214

215215
- `<unsafe-test-key-name>`: Replace it with the key name from your local keys.
@@ -220,7 +220,7 @@ You will find a `CODE_ID` from the output of the command above. Save it as a loc
220220
Instead, you can also run the following command to set the `CODE_ID` as a variable:
221221

222222
```ansi filename="Terminal"
223-
$ TX=$(dorad tx wasm store counter.wasm --from <unsafe-test-key-name> --chain-id=<chain-id> --gas-prices 0.1uDORA --gas auto --gas-adjustment 1.3 -b block --output json -y | jq -r '.txhash')
223+
$ TX=$(dorad tx wasm store counter.wasm --from <unsafe-test-key-name> --chain-id=<chain-id> --gas-prices 100000000000peaka --gas auto --gas-adjustment 1.5 -b block --output json -y | jq -r '.txhash')
224224
$ CODE_ID=$(dorad query tx $TX --output json | jq -r '.logs[0].events[-1].attributes[0].value')
225225
$ echo "Your contract code_id is $CODE_ID"
226226
```
@@ -248,14 +248,14 @@ $ CONTRACT_ADDR=$(dorad query wasm list-contract-by-code ${CODE_ID} --node https
248248

249249
```ansi filename="Terminal"
250250
$ INCREMENT_MSG='{"increment":{}}'
251-
$ dorad tx wasm execute $CONTRACT_ADDR "$INCREMENT_MSG" --from test1 --gas-prices 0.01uDORA --gas auto --gas-adjustment 1.3 --chain-id "doravota-devnet" --node https://vota-rpc.dorafactory.org:443 -y
251+
$ dorad tx wasm execute $CONTRACT_ADDR "$INCREMENT_MSG" --from test1 --gas-prices 100000000000peaka --gas auto --gas-adjustment 1.5 --chain-id "doravota-devnet" --node https://vota-rpc.dorafactory.org:443 -y
252252
```
253253

254254
### Reset the count in contract
255255

256256
```ansi filename="Terminal"
257257
$ RESET_MSG='{"reset":{"count":0}}'
258-
$ dorad tx wasm execute $CONTRACT_ADDR "$RESET_MSG" --from test1 --gas-prices 0.01uDORA --gas auto --gas-adjustment 1.3 --chain-id "doravota-devnet" --node https://vota-rpc.dorafactory.org:443 -y
258+
$ dorad tx wasm execute $CONTRACT_ADDR "$RESET_MSG" --from test1 --gas-prices 100000000000peaka --gas auto --gas-adjustment 1.5 --chain-id "doravota-devnet" --node https://vota-rpc.dorafactory.org:443 -y
259259
```
260260

261261
## Query the contract

pages/docs/vota-dev/dorad.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ The denom of Dora Vota is `peaka`, and `1 DORA = 10^18 peaka`.
131131
Here is an example of token transfer on Dora Vota:
132132

133133
```ansi filename="Terminal"
134-
$ dorad tx bank send <from_addr> <to_addr> <amount> --chain-id vota-ash --gas-prices=0.01peaka --gas=auto --gas-adjustment=1.3 --node https://vota-rpc.dorafactory.org:443
134+
$ dorad tx bank send <from_addr> <to_addr> <amount> --chain-id vota-ash --gas-prices=100000000000peaka --gas=auto --gas-adjustment=1.5 --node https://vota-rpc.dorafactory.org:443
135135
```
136136

137137
### Query the balance of account

pages/docs/vota/prerequisites.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ For optimal performance and security, it is recommended to prepare an environmen
1313

1414
- **Stable internet**: Ensure reliable connectivity.
1515
- **Secure computing platform**: Maintain a safe and robust computer environment.
16-
- **UNIX-like OS with a terminal app/emulator**: macOS, Linux, or simimar systems are recommended for better compatibility with Node.js and CLI operations.
16+
- **UNIX-like OS with a terminal app/emulator**: macOS, Linux, or similar systems are recommended for better compatibility with Node.js and CLI operations.
1717

1818
## Install Node.js 18.x version
1919

@@ -46,7 +46,7 @@ To facilitate safe and seamless operations, you can set up your wallet by follow
4646

4747
### Sufficient DORA tokens
4848

49-
- Get sufficient DORA tokens for gas fees, which will be consumed in the operation process. To start with, we recommend you prepare 20 DORA.
49+
- Get sufficient DORA tokens for gas fees, which will be consumed in the operation process. To start with, we recommend you prepare 5 DORA.
5050
- You can buy DORA tokens from [[Some CEX/DEX]](https://example.com). Please keep in mind that you should acquire DORA tokens on the **Dora Vota Mainnet**.
5151

5252
</Steps>

0 commit comments

Comments
 (0)