Skip to content

Commit

Permalink
Update versioning (#1349)
Browse files Browse the repository at this point in the history
* Update versioning

Signed-off-by: Alexandra Tran <alexandra.tran@consensys.net>

* remove package-lock.json

Signed-off-by: Alexandra Tran <alexandra.tran@consensys.net>

* update yarn.lock && add redirect for en/stable->stable

Signed-off-by: Joshua Fernandes <joshua.fernandes@consensys.net>

* fix pr preview workflow

Signed-off-by: Joshua Fernandes <joshua.fernandes@consensys.net>

* update permissions

Signed-off-by: Joshua Fernandes <joshua.fernandes@consensys.net>

* updating version of gh-actions deploy

Signed-off-by: Joshua Fernandes <joshua.fernandes@consensys.net>

* trying out james ives action

* revert to peaceiris - same 403 error

Signed-off-by: Joshua Fernandes <joshua.fernandes@consensys.net>

* redirects

Signed-off-by: Alexandra Tran <alexandra.tran@consensys.net>

* minor fix

Signed-off-by: Alexandra Tran <alexandra.tran@consensys.net>

---------

Signed-off-by: Alexandra Tran <alexandra.tran@consensys.net>
Signed-off-by: Joshua Fernandes <joshua.fernandes@consensys.net>
Co-authored-by: Joshua Fernandes <joshua.fernandes@consensys.net>
  • Loading branch information
alexandratran and joshuafernandes committed Jun 28, 2023
1 parent 4b7113b commit c255788
Show file tree
Hide file tree
Showing 307 changed files with 3,634 additions and 67,817 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/delete-preview.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
needs: is-fork-pull-request
permissions:
contents: write
if: ${{ needs.is-fork-pull-request.outputs.IS_FORK == 'false' && github.event.pull_request.head.ref != 'wallet' && github.event.pull_request.head.ref != 'snaps' && github.event.pull_request.head.ref != 'guide' && github.event.pull_request.head.ref != 'assets' && github.event.pull_request.head.ref != 'img' && github.event.pull_request.head.ref != 'search' }}
if: ${{ needs.is-fork-pull-request.outputs.IS_FORK == 'true' }}
steps:
- name: Checkout Repository
uses: actions/checkout@v3
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/publish-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
- name: Run build script
run: DEST="/${{ inputs.destination_dir }}" yarn build
- name: Deploy to `${{ inputs.destination_dir }}` directory of `gh-pages` branch
uses: peaceiris/actions-gh-pages@068dc23d9710f1ba62e86896f84735d869951305
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./build
Expand Down
5 changes: 2 additions & 3 deletions .github/workflows/publish-preview.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,8 @@ jobs:
get-commit-hash:
name: Get the commit hash for the commit being previewed
needs: is-fork-pull-request
# This ensures we don't publish on forks. We can't trust forks to publish on our domain.
# also ensures we dont publish previews to folders that are already used
if: ${{ needs.is-fork-pull-request.outputs.IS_FORK == 'false' && github.event.pull_request.head.ref != 'wallet' && github.event.pull_request.head.ref != 'snaps' && github.event.pull_request.head.ref != 'guide' && github.event.pull_request.head.ref != 'assets' && github.event.pull_request.head.ref != 'img' && github.event.pull_request.head.ref != 'search' }}
# This ensures we publish on forks.
if: ${{ needs.is-fork-pull-request.outputs.IS_FORK == 'true' }}
runs-on: ubuntu-latest
outputs:
COMMIT_SHA: ${{ steps.commit-sha.outputs.COMMIT_SHA }}
Expand Down
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,3 @@ Having the following accounts is necessary for contributing code/issues to Besu:
[Linux Foundation (LF) account]: https://wiki.hyperledger.org/display/CA/Setting+up+an+LFID
[GitHub account]: https://www.github.com/
[Hyperledger Discord]: https://discord.gg/hyperledger

2 changes: 1 addition & 1 deletion docs/public-networks/how-to/troubleshoot/peering.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ You can use this [open port checker](https://www.yougetsignal.com/tools/open-por

The default maximum is 25. Increasing the number of peers increases the bandwidth, CPU, and disk access Besu uses to respond to peers. Hardware with low specifications might result in low peer numbers. You'll experience diminishing returns with a larger number of peers (>100).

### question "What's the benefit of increasing the number of peers?"
### "What's the benefit of increasing the number of peers?"

Increasing the number of max peers won't speed up Besu syncing, because the bottleneck during sync is disk IO and CPU.

Expand Down
21 changes: 16 additions & 5 deletions docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ const config = {
// Set a base path separate from default /docs
editUrl: "https://github.com/hyperledger/besu-docs/tree/main/",
// path: "docs",
lastVersion: "stable",
lastVersion: "23.4.1",
versions: {
//defaults to the ./docs folder
// using 'development' instead of 'next' as path
Expand All @@ -46,9 +46,8 @@ const config = {
},
//the last stable release in the versioned_docs/version-stable
// using 'stable' as path
// prettier-ignore
"stable": {
label: "stable",
"23.4.1": {
label: "stable (23.4.1)",
path: "stable",
banner: "none",
},
Expand Down Expand Up @@ -282,7 +281,16 @@ const config = {
[
"@docusaurus/plugin-client-redirects",
{
redirects: [],
redirects: [
{
from: "/en/latest",
to: "/",
},
{
from: "/en/stable",
to: "/",
},
],
createRedirects(existingPath) {
if (existingPath.includes("/development")) {
return [
Expand All @@ -291,6 +299,9 @@ const config = {
existingPath.replace("/development", "/latest"),
];
}
if (existingPath.includes("/stable")) {
return [existingPath.replace("/stable", "/en/stable")];
}
return undefined; // Return a falsy value: no redirect created
},
},
Expand Down
Loading

0 comments on commit c255788

Please sign in to comment.