forked from iotaledger/wasp
-
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
1 parent
40e3da1
commit 927e686
Showing
12 changed files
with
12,154 additions
and
10,987 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 @@ | ||
name: Test Docs Build | ||
|
||
on: | ||
pull_request: | ||
branches: | ||
- master | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
checks: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Test Build | ||
run: | | ||
cd documentation | ||
yarn install --immutable | ||
yarn 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
Large diffs are not rendered by default.
Oops, something went wrong.
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 @@ | ||
nodeLinker: node-modules | ||
|
||
yarnPath: .yarn/releases/yarn-3.2.0.cjs |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,71 +1,23 @@ | ||
const lightCodeTheme = require('prism-react-renderer/themes/github'); | ||
const darkCodeTheme = require('prism-react-renderer/themes/dracula'); | ||
const path = require('path'); | ||
|
||
/** @type {import('@docusaurus/types').DocusaurusConfig} */ | ||
module.exports = { | ||
title: 'IOTA Smart Contract Protocol', | ||
tagline: 'IOTA smart contract protocol.', | ||
url: 'https://iscp.docs.iota.org', | ||
baseUrl: '/', | ||
onBrokenLinks: 'throw', | ||
onBrokenMarkdownLinks: 'throw', | ||
favicon: '/img/logo/favicon.ico', | ||
organizationName: 'iotaledger', | ||
trailingSlash: true, | ||
projectName: 'wasp', | ||
stylesheets: [ | ||
'https://fonts.googleapis.com/css?family=Material+Icons', | ||
], | ||
themeConfig: { | ||
navbar: { | ||
title: 'ISCP', | ||
logo: { | ||
alt: 'IOTA', | ||
src: 'img/logo/WASP_logo_dark.png', | ||
}, | ||
items: [ | ||
{ | ||
type: 'doc', | ||
docId: 'overview', | ||
position: 'left', | ||
label: 'Documentation', | ||
}, | ||
], | ||
}, | ||
footer: { | ||
style: 'dark', | ||
links: [ | ||
{ | ||
title: 'Documentation', | ||
items: [ | ||
{ | ||
label: 'Overview', | ||
to: '/docs/overview', | ||
}, | ||
], | ||
}, | ||
], | ||
copyright: `Copyright © ${new Date().getFullYear()} IOTA Foundation, Built with Docusaurus.`, | ||
}, | ||
prism: { | ||
additionalLanguages: ['rust'], | ||
theme: lightCodeTheme, | ||
darkTheme: darkCodeTheme, | ||
}, | ||
}, | ||
presets: [ | ||
plugins: [ | ||
[ | ||
'@docusaurus/preset-classic', | ||
'@docusaurus/plugin-content-docs', | ||
{ | ||
docs: { | ||
sidebarPath: require.resolve('./sidebars.js'), | ||
editUrl: | ||
'https://github.com/iotaledger/chronicle.rs/tree/main/docs', | ||
}, | ||
theme: { | ||
customCss: require.resolve('./src/css/iota.css'), | ||
id: 'wasp', | ||
path: path.resolve(__dirname, 'docs'), | ||
routeBasePath: 'smart-contracts', | ||
sidebarPath: path.resolve(__dirname, 'sidebars.js'), | ||
editUrl: 'https://github.com/iotaledger/wasp/edit/master/documentation', | ||
remarkPlugins: [require('remark-code-import'), require('remark-import-partial'), require('remark-remove-comments')], | ||
versions: { | ||
current: { | ||
label: 'Stable', | ||
}, | ||
}, | ||
}, | ||
} | ||
], | ||
], | ||
staticDirectories: [path.resolve(__dirname, 'static')], | ||
}; |
Oops, something went wrong.