forked from MetaMask/metamask-docs
-
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
Showing
3 changed files
with
40 additions
and
2 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,30 @@ | ||
version: 2 | ||
jobs: | ||
build: | ||
branches: | ||
ignore: | ||
- gh-pages | ||
docker: | ||
- image: circleci/node:11 | ||
environment: | ||
- SOURCE_BRANCH: master | ||
- TARGET_BRANCH: gh-pages | ||
steps: | ||
- checkout | ||
- deploy: | ||
command: | | ||
if [ $CIRCLE_BRANCH == $SOURCE_BRANCH ]; then | ||
git config --global user.email $GH_EMAIL | ||
git config --global user.name $GH_NAME | ||
git clone $CIRCLE_REPOSITORY_URL project | ||
cd project | ||
npx uncrate -p=v5.0.3 | ||
git checkout $TARGET_BRANCH | ||
cp -r dist/* . | ||
rm -rf dist | ||
git add -A | ||
git commit -m "Automated deployment: ${CIRCLE_SHA1}" --allow-empty | ||
git push origin $TARGET_BRANCH | ||
fi |
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,5 +1,11 @@ | ||
<img src="https://metamask.io/img/metamask.png" width="60" height="auto"> | ||
|
||
MetaMask project documentation | ||
|
||
https://metamask.github.io/metamask-docs/ | ||
|
||
[![CircleCI](https://circleci.com/gh/MetaMask/metamask-docs/tree/master.svg?style=shield)](https://circleci.com/gh/MetaMask/metamask-docs/tree/master) | ||
|
||
## Usage | ||
|
||
Documentation is auto-deployed when markdown files on the `master` branch are edited. No installation is necessary. | ||
Documentation is auto-deployed when markdown files on the `master` branch change: just create, edit, or delete files as needed and commit the updates. |
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,6 +1,8 @@ | ||
module.exports = { | ||
description: 'MetaMask project documentation', | ||
exclude: '.git|README.md', | ||
logo: 'https://metamask.io/img/metamask.png', | ||
name: 'MetaMask', | ||
repo: 'metamask/metamask-extension' | ||
repo: 'metamask/metamask-extension', | ||
subdir: '/metamask-docs/' | ||
}; |