-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #287 from kelsos/documentation
Adds automatic documentation generation
- Loading branch information
Showing
7 changed files
with
12,741 additions
and
5,702 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
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,17 @@ | ||
const sidebar = require('./api-sidebar'); | ||
|
||
module.exports = { | ||
title: 'Raiden Light Client SDK', | ||
description: 'API Documentation for the Raiden Light Client SDK', | ||
base: '/docs/', | ||
themeConfig: { | ||
repo: 'raiden-network/light-client', | ||
displayAllHeaders: true, | ||
sidebar: sidebar, | ||
lastUpdated: 'Last Updated', | ||
nav: [ | ||
{ text: 'Raiden Network', link: 'https://raiden.network/' }, | ||
{ text: 'Developer Portal', link: 'https://developer.raiden.network/' } | ||
] | ||
} | ||
}; |
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,28 @@ | ||
#!/usr/bin/env bash | ||
|
||
cd ../raiden-ts | ||
|
||
if [[ -d './docs' ]] | ||
then | ||
rm -rf docs | ||
fi | ||
|
||
npm run docs:generate | ||
|
||
[[ -d 'docs/.vuepress' ]] || mkdir docs/.vuepress | ||
[[ -d 'docs/.vuepress/styles' ]] || mkdir docs/.vuepress/styles | ||
|
||
cp ../docs/config.js docs/.vuepress/config.js | ||
cp ../docs/palette.styl docs/.vuepress/styles/palette.styl | ||
|
||
npm run docs:build | ||
|
||
if [[ ! -d '../raiden-dapp/dist/' ]] | ||
then | ||
echo 'The dApp dist directory was not available' | ||
exit 1; | ||
fi | ||
|
||
[[ ! -d '../raiden-dapp/dist/docs' ]] || rm -rf ../raiden-dapp/dist/docs | ||
|
||
cp -r docs/.vuepress/dist ../raiden-dapp/dist/docs |
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 @@ | ||
$accentColor = #28a5c8 |
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 |
---|---|---|
|
@@ -5,3 +5,4 @@ contracts/ | |
|
||
*.vim | ||
.localstorage | ||
docs |
Oops, something went wrong.