forked from plotly/documentation
-
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.
Merge pull request plotly#1172 from plotly/MercifulCode-source-design…
…-merge Merciful code source design merge
- Loading branch information
Showing
10 changed files
with
68 additions
and
66 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
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,28 +1,34 @@ | ||
# Contribute to Plotly's [Javascript Documentation](https://plot.ly/javascript/) | ||
|
||
## Initial Steps: | ||
|
||
1. Clone the repo and then check out the source-design-merge branch: | ||
|
||
``` | ||
$ git clone [email protected]:plotly/documentation.git | ||
$ git fetch origin | ||
$ git checkout source-design-merge | ||
```sh | ||
git clone [email protected]:plotly/documentation.git | ||
git fetch origin | ||
git checkout source-design-merge | ||
``` | ||
|
||
2. Check Ruby version `$ ruby --version`. We recommend using the same ruby version as gh-pages: https://pages.github.com/versions/. Note [RVM](https://rvm.io/rvm/install) is helpful for installing and managing ruby versions. | ||
2. Check Ruby version `$ ruby --version`. We recommend using the same ruby version as [gh-pages](https://pages.github.com/versions/). Note [RVM](https://rvm.io/rvm/install) is helpful for installing and managing ruby versions. | ||
|
||
3. Install bundler and a couple dependencies from the gemfile: | ||
|
||
``` | ||
$ gem install bundler | ||
$ bundle install | ||
```sh | ||
gem install bundler | ||
bundle install | ||
``` | ||
|
||
``` | ||
<b>IMPORTANT</b> -If not using bundler and the gemfile, [install the same jekyll version that Github Pages is using](https://pages.github.com/versions/). | ||
|
||
## Create Plotly.js Documentation: | ||
Our javascript tutorials are written in HTML files with embeded [codepen](http://codepen.io/plotly/) examples. | ||
|
||
Our javascript tutorials are written in HTML files with embedded [codepen](http://codepen.io/plotly/) examples. | ||
|
||
##### In `documentation/_posts/plotly_js` | ||
1. Create a folder titled with the chart type or topic you're adding to the documentation (i.e. `bar`) | ||
|
||
1. Create a folder titled with the chart type or topic you're adding to the documentation (i.e. `bar`) | ||
|
||
2. `cd` into the folder you created and create an html index file labeled: `yyyy-mm-dd-chart_type_plotlyjs_index.html`. Copy the index file template below and replace with the necessary information pertaining to the doc you are creating. | ||
``` | ||
--- | ||
|
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
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
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
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