Skip to content

Commit

Permalink
Attempt to Fix w3f#2452 (w3f#2464)
Browse files Browse the repository at this point in the history
* Update docusaurus.config.js

* fix assets in contributing.md

* add fetch depth
  • Loading branch information
salmad3 authored Aug 13, 2021
1 parent 7b176df commit 8d83e14
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 15 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/deploy-polkadot-staging.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@ jobs:
- uses: actions/setup-node@v2
with:
node-version: "14"
- uses: actions/checkout@v2
with:
fetch-depth: 0

# - name: Clone and run the site
# run: |
Expand Down Expand Up @@ -71,4 +74,4 @@ jobs:
chmod +x ./ipfs-cluster-ctl/ipfs-cluster-ctl
export PATH=$PATH:`pwd`/ipfs-cluster-ctl
node ./scripts/ipfs-cluster-pin.js --auth ${{ secrets.CLUSTER_BASIC_AUTH_USER}}:${{ secrets.CLUSTER_BASIC_AUTH_PASSWORD}} --websiteDir ./website-v2/build --pinName polkadot-wiki-staging
node ./scripts/ipfs-cluster-pin.js --auth ${{ secrets.CLUSTER_BASIC_AUTH_USER}}:${{ secrets.CLUSTER_BASIC_AUTH_PASSWORD}} --websiteDir ./website-v2/build --pinName polkadot-wiki-staging
4 changes: 2 additions & 2 deletions docs/contributing.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,12 +38,12 @@ directly. When you've completed your changes, you can add any specific details o
and commit to a **new branch** to create a new Pull Request to the repository. From there one of the
maintainers will review your changes, and either merge them or request changes.

![](../assets/contributing.png) ![](../assets/creating-pull-request.png)
![](./assets/contributing.png) ![](./assets/creating-pull-request.png)

Remember that after you click "Propose Changes", you must also click on "Create Pull Request" on the
next page.

![](../assets/creating-pull-request-2.png)
![](./assets/creating-pull-request-2.png)

## Rules

Expand Down
23 changes: 11 additions & 12 deletions website-v2/docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ const isPublishing = process.env.PUBLISHING === "true";

module.exports = {
title: "Polkadot Wiki",
tagline: "The hub for those interested in learning, building, or running a node on Polkadot.",
tagline:
"The hub for those interested in learning, building, or running a node on Polkadot.",
titleDelimiter: "·",
url: "https://wiki.polkadot.network",
baseUrl: "/",
Expand Down Expand Up @@ -50,12 +51,12 @@ module.exports = {
"@docusaurus/preset-classic",
{
docs: {
showLastUpdateAuthor: true,
showLastUpdateTime: true,
editUrl: ({ docPath }) =>
`https://github.com/w3f/polkadot-wiki/edit/master/docs/${docPath}`,
path: "../docs",
sidebarPath: "./sidebars.js",
showLastUpdateAuthor: true,
showLastUpdateTime: true,
sidebarPath: require.resolve("./sidebars.js"),
routeBasePath: "docs",
remarkPlugins: [injectPlugin({ isPolkadot: true })],
},
Expand All @@ -77,10 +78,9 @@ module.exports = {
{
redirects: [
{
to: '/',

from: ['/en/latest','/en/'],
to: "/",

from: ["/en/latest", "/en/"],
},
],
createRedirects: function (existingPath) {
Expand All @@ -91,7 +91,6 @@ module.exports = {
existingPath.replace("/docs/", "/docs/ru-RU/"),
];
}

},
},
],
Expand All @@ -105,10 +104,10 @@ module.exports = {
},
liveCodeBlock: {
/**
* The position of the live playground, above or under the editor
* Possible values: "top" | "bottom"
*/
playgroundPosition: 'bottom',
* The position of the live playground, above or under the editor
* Possible values: "top" | "bottom"
*/
playgroundPosition: "bottom",
},
navbar: {
logo: {
Expand Down

0 comments on commit 8d83e14

Please sign in to comment.