-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 4c8f315
Showing
189 changed files
with
51,226 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
This MR [TODO: Please describe your changes here]. | ||
|
||
## Checklist: | ||
|
||
### 1 - First Draft | ||
* [ ] Internal technical review completed | ||
* [ ] Internal language review completed | ||
* [ ] Toposware review requested | ||
* [ ] Toposware review completed | ||
|
||
### 2 - Finalized Draft | ||
* [ ] Internal technical review completed | ||
* [ ] Internal language review completed | ||
* [ ] Toposware review requested | ||
* [ ] Toposware review completed | ||
|
||
### 3 - Release Candidate | ||
* [ ] Internal technical review completed | ||
* [ ] Internal language review completed | ||
* [ ] Toposware sign-off requested | ||
* [ ] Toposware sign-off |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
name: Build & Deploy production | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
build-and-deploy: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: 📦 Checkout repository | ||
uses: actions/checkout@v4 | ||
- name: ⚙️ Configure build env | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: 18 | ||
- name: 🛠️ Build platform | ||
run: | | ||
npm ci | ||
npm run build | ||
- name: ⚙️ Configure AWS credentials | ||
uses: aws-actions/configure-aws-credentials@v4 | ||
with: | ||
aws-access-key-id:${{ secrets.AWS_ACCESS_KEY_ID }} | ||
aws-secret-access-key:${{ secrets.AWS_SECRET_ACCESS_KEY }} | ||
aws-region: eu-west-1 | ||
- name: 🚀 Deploy AWS S3 | ||
run: | | ||
aws s3 sync public ${{ AWS_S3_BUCKET_URL }} | ||
aws cloudfront create-invalidation --distribution-id ${{ CF_DISTRIBUTION_ID }} --paths "/*" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
.DS_Store | ||
node_modules/ | ||
.cache/ | ||
public | ||
src/gatsby-types.d.ts | ||
.env | ||
.nvmrc |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
# Ignore artifacts: | ||
public | ||
.cache | ||
|
||
# Ignore all MD files: | ||
**/*.md |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"singleQuote": true | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
MIT License | ||
|
||
Copyright (c) 2023 toposware | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy | ||
of this software and associated documentation files (the "Software"), to deal | ||
in the Software without restriction, including without limitation the rights | ||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
copies of the Software, and to permit persons to whom the Software is | ||
furnished to do so, subject to the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be included in all | ||
copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
SOFTWARE. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
# gatsby-platform | ||
|
||
## Install | ||
|
||
Install submodule (if you need to handle protected logic) | ||
``` | ||
git submodule init | ||
git submodule update | ||
``` | ||
With newer git versions, you can also use the following command instead | ||
``` | ||
git clone [email protected]:internal-projects/nextgen-documentation-platform/gatsby-platform.git --recurse-submodules | ||
``` | ||
|
||
``` | ||
npm install | ||
``` | ||
|
||
``` | ||
npm install -g gatsby-cli | ||
``` | ||
|
||
## Configuration | ||
|
||
See [config.ts](./config.ts) | ||
|
||
Remember to configure the platform to work with `gatsby-platform-module`, for more informations see [here](https://git.b9lab.com/internal-projects/nextgen-documentation-platform/gatsby-platform-module/tree/main/README.md) | ||
|
||
## Dev | ||
|
||
``` | ||
npm run develop | ||
``` | ||
|
||
## Build | ||
|
||
``` | ||
gatsby build | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,112 @@ | ||
import Config from './src/interfaces/Config'; | ||
|
||
const config: Config = { | ||
siteTitle: 'Toposware', | ||
twitterName: '@toposware', | ||
title: 'Developer Portal', | ||
rootUrl: 'https://docs.topos.technology/', // used only for the social card atm, required (update when using other environment) | ||
protectedRoutePrefix: '/protected', // slash at the beginning, but not at the end. Also the page file name has to match. | ||
includeFolder: ['features-test', 'content', 'legal'], | ||
indexPath: 'content', // could be content/module-1/introduction.html for example or any path to a html page | ||
includeProtectedFolder: [], | ||
protectedPagesPath: '', | ||
protectedLayoutsPath: '', | ||
pageTransitionDuration: 0.2, | ||
enableH3Toc: true, | ||
headerOffset: 100, | ||
docSearch: { | ||
appId: 'S36OISFKTX', | ||
apiKey: 'fc77ad501873a0a81b4c39e02a4aaaac', | ||
indexName: 'crawler_Toposware docs platform (new)', | ||
placeholder: 'Search documentation' | ||
}, | ||
navigation: [ | ||
{ | ||
label: 'What is Topos?', | ||
content: [ | ||
{ | ||
label: 'Chapter overview: What is Topos?', | ||
path: '/content/module-1' | ||
}, | ||
{ | ||
label: 'Introduction', | ||
path: '/content/module-1/1-introduction.html' | ||
}, | ||
{ | ||
label: 'Why Topos?', | ||
path: '/content/module-1/2-why-topos.html' | ||
}, | ||
{ | ||
label: 'Use cases', | ||
path: '/content/module-1/3-use-cases.html' | ||
}, | ||
{ | ||
label: 'Topos protocol', | ||
path: '/content/module-1/4-protocol.html' | ||
}, | ||
{ | ||
label: 'Cross-subnet messages', | ||
path: '/content/module-1/5-cross-subnet.html' | ||
}, | ||
{ | ||
label: 'Messaging protocol', | ||
path: '/content/module-1/6-messaging-protocol.html' | ||
} | ||
] | ||
}, | ||
{ | ||
label: 'First steps with Topos', | ||
content: [ | ||
{ | ||
label: 'Chapter overview: First steps with Topos', | ||
path: '/content/module-2' | ||
}, | ||
{ | ||
label: 'ERC20 Messaging', | ||
path: '/content/module-2/1-ERC20-Messaging.html' | ||
}, | ||
{ | ||
label: 'Topos Explorer', | ||
path: '/content/module-2/2-explorer.html' | ||
}, | ||
{ | ||
label: 'Topos Playground', | ||
path: '/content/module-2/3-topos-playground.html' | ||
}, | ||
{ | ||
label: 'Topos CLI', | ||
path: '/content/module-2/4-cli.html' | ||
} | ||
] | ||
}, | ||
{ | ||
label: 'Topos Terms', | ||
content: [ | ||
{ | ||
label: 'Glossary', | ||
path: '/content/glossary.html' | ||
} | ||
] | ||
}, | ||
{ | ||
label: 'Legal', | ||
content: [ | ||
{ | ||
label: 'Privacy policy', | ||
path: '/legal/privacy-policy.html' | ||
} | ||
] | ||
} | ||
], | ||
footerLinks: [ | ||
{ | ||
label: 'Privacy Policy', | ||
path: '/legal/privacy-policy.html' | ||
} | ||
], | ||
storage: { | ||
cookieConsentKey: 'cookieConsent' | ||
} | ||
}; | ||
|
||
export default config; |
Oops, something went wrong.