Merge pull request #1 from acid-info/docu-2023

Implement docusaurus
This commit is contained in:
SWB 2023-06-01 22:23:13 +01:00 committed by GitHub
commit 2709430cf5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 72 additions and 15 deletions

61
Jenkinsfile vendored Normal file
View File

@ -0,0 +1,61 @@
pipeline {
agent { label 'linux' }
options {
disableConcurrentBuilds()
/* manage how many builds we keep */
buildDiscarder(logRotator(
numToKeepStr: '20',
daysToKeepStr: '30',
))
}
environment {
GIT_COMMITTER_NAME = 'status-im-auto'
GIT_COMMITTER_EMAIL = 'auto@status.im'
PROD_SITE = 'nomos.tech'
DEV_SITE = 'dev.nomos.tech'
DEV_HOST = 'jenkins@node-01.do-ams3.sites.misc.statusim.net'
SCP_OPTS = 'StrictHostKeyChecking=no'
}
stages {
stage('Install') {
steps {
sh "yarn install"
}
}
stage('Build') {
steps {
sh 'yarn build'
sh "echo ${env.PROD_SITE} > build/CNAME"
}
}
stage('Publish Prod') {
when { expression { env.GIT_BRANCH ==~ /.*master/ } }
steps {
sshagent(credentials: ['status-im-auto-ssh']) {
sh "ghp-import -p build"
}
}
}
stage('Publish Devel') {
when { expression { env.GIT_BRANCH ==~ /.*develop/ } }
steps {
sshagent(credentials: ['jenkins-ssh']) {
sh """
rsync -e 'ssh -o ${SCP_OPTS}' -r --delete build/. \
${env.DEV_HOST}:/var/www/${env.DEV_SITE}/
"""
}
}
}
}
post {
cleanup { cleanWs() }
}
}

View File

@ -73,10 +73,6 @@ const config = {
label: 'Github',
href: '/',
},
{
type: 'localeDropdown',
position: 'right',
},
],
},
footer: {

View File

@ -15,7 +15,7 @@
"typecheck": "tsc"
},
"dependencies": {
"@acid-info/logos-docusaurus-preset": "^1.0.0-alpha.1",
"@acid-info/logos-docusaurus-preset": "^1.0.0-alpha.4",
"@docusaurus/core": "2.4.1",
"@docusaurus/preset-classic": "2.4.1",
"@docusaurus/theme-mermaid": "^2.4.1",

View File

@ -2,13 +2,13 @@
# yarn lockfile v1
"@acid-info/logos-docusaurus-preset@^1.0.0-alpha.0":
version "1.0.0-alpha.0"
resolved "https://registry.yarnpkg.com/@acid-info/logos-docusaurus-preset/-/logos-docusaurus-preset-1.0.0-alpha.0.tgz#74f39f2ef1a57992b515d548b2c8b32cf5604162"
integrity sha512-ZL9apEcem4ytmWw8CX6Q6jGbl0T0x3FpQRR37XISftzzodz2Jr6Wd5RK3xzHa/UeisBDl1iZF4xKAaf1RBfohA==
"@acid-info/logos-docusaurus-preset@^1.0.0-alpha.4":
version "1.0.0-alpha.4"
resolved "https://registry.yarnpkg.com/@acid-info/logos-docusaurus-preset/-/logos-docusaurus-preset-1.0.0-alpha.4.tgz#ec958cc49d0420bc361541002138dc0bd8595889"
integrity sha512-kVOaa0bCPy5tBJxEZS51N3+UgtO6M4TciRA7x/4JQ+uwy1s5cSldkecmjmb1Ch5/tGB6QCllU2tjuZrsY1aiRg==
dependencies:
"@acid-info/logos-docusaurus-search-local" "^1.0.0-alpha.0"
"@acid-info/logos-docusaurus-theme" "^1.0.0-alpha.0"
"@acid-info/logos-docusaurus-theme" "^1.0.0-alpha.4"
"@docusaurus/core" "^2.4.1"
"@docusaurus/module-type-aliases" "^2.4.1"
"@docusaurus/preset-classic" "^2.4.1"
@ -34,12 +34,12 @@
"@easyops-cn/docusaurus-search-local" "^0.33.6"
lodash "^4.17.21"
"@acid-info/logos-docusaurus-theme@^1.0.0-alpha.0":
version "1.0.0-alpha.0"
resolved "https://registry.yarnpkg.com/@acid-info/logos-docusaurus-theme/-/logos-docusaurus-theme-1.0.0-alpha.0.tgz#53bf9c45adb2d10d58febd4415775365a8ce8d17"
integrity sha512-ioCfyYJVlzLSKS+yAxc5jXRoETmowVTJI0U/fTOGcdPrsXp/VRhMkwGpDJoD+gm6VtV88fH9gg+wefMdRX+g+A==
"@acid-info/logos-docusaurus-theme@^1.0.0-alpha.4":
version "1.0.0-alpha.4"
resolved "https://registry.yarnpkg.com/@acid-info/logos-docusaurus-theme/-/logos-docusaurus-theme-1.0.0-alpha.4.tgz#63ef02dc4f9acc816bc9bdb7fb5a4664c0a5a3ee"
integrity sha512-mQBaIUVVe2LWnKHFfeCnMtLkbCbJxe306DrO+Q2v4f4VXkDiTygXDCd8Rs/DFCPhlyIDRkZRfgH4Fzmb1S+lwA==
dependencies:
"@acid-info/logos-docusaurus-preset" "^1.0.0-alpha.0"
"@acid-info/logos-docusaurus-preset" "^1.0.0-alpha.4"
"@acid-info/lsd-react" "^0.1.0-alpha.8"
"@docusaurus/core" "^2.4.1"
"@docusaurus/mdx-loader" "^2.4.1"