Skip to content

Commit 0320078

Browse files
author
Joseph Damiba
committedJan 28, 2020
initial repo setup
0 parents  commit 0320078

File tree

2,565 files changed

+1011971
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

2,565 files changed

+1011971
-0
lines changed
 

‎.circleci/config.yml

+120
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,120 @@
1+
version: 2
2+
jobs:
3+
build:
4+
branches:
5+
ignore:
6+
- gh-pages
7+
8+
docker:
9+
# a packaged system that has the instructions for creating a running container.
10+
- image: circleci/ruby:2.3.3
11+
12+
# actions that need to be taken to perform your job
13+
steps:
14+
- add_ssh_keys:
15+
fingerprints:
16+
- "dc:5f:39:48:00:b4:72:34:e1:d2:c4:e1:1f:d1:e2:ce" #plotlydocbot
17+
18+
- restore_cache:
19+
keys:
20+
- source-v1- #one time, not every time!
21+
22+
# checks out the source code for a job over SSH
23+
- checkout
24+
25+
- save_cache:
26+
key: source-v1-1 # Sept 7, 2019
27+
paths:
28+
- ".git"
29+
30+
- restore_cache:
31+
keys:
32+
- gem-cache-v1-{{ arch }}-{{ .Branch }}-{{ checksum "Gemfile.lock" }}
33+
- gem-cache-v1-{{ arch }}-{{ .Branch }}
34+
- gem-cache-v1
35+
36+
- run:
37+
name: install dependencies
38+
command: |
39+
bundle install --path vendor/bundle
40+
sudo apt-get update
41+
sudo apt install python-pip
42+
sudo pip install python-frontmatter
43+
sudo pip install pathlib
44+
45+
- save_cache:
46+
key: gem-cache-v1-{{ arch }}-{{ .Branch }}-{{ checksum "Gemfile.lock" }}
47+
paths:
48+
- vendor/bundle
49+
50+
- run:
51+
name: deployment
52+
command: |
53+
git config --global user.email "accounts@plot.ly"
54+
git config --global user.name "plotlydocbot"
55+
echo
56+
echo "token: ${mapbox_token}" > _data/mapbox_token.yml
57+
rm -rf _posts/python/html
58+
rm -rf _posts/r/md
59+
git clone -b built git@github.com:plotly/plotly.py-docs _posts/python/html
60+
git clone -b built git@github.com:plotly/plotly.r-docs _posts/r/md
61+
mv _posts/r/md/ggplot2 _posts/ggplot2/md
62+
python front-matter-ci.py _posts
63+
python check-or-enforce-order.py _posts/python
64+
python check-or-enforce-order.py _posts/python-v3
65+
python check-or-enforce-order.py _posts/r/
66+
python check-or-enforce-order.py _posts/plotly_js
67+
bundle exec jekyll build
68+
rm _data/mapbox_token.yml
69+
mkdir snapshots
70+
cd _site
71+
cp -r 'all_static' '../snapshots'
72+
cp 'api/index.html' '../snapshots'
73+
cp --parents 'python/index.html' '../snapshots'
74+
cp --parents 'python/getting-started/index.html' '../snapshots'
75+
cp --parents 'python/plotly-fundamentals/index.html' '../snapshots'
76+
cp --parents 'python/line-and-scatter/index.html' '../snapshots'
77+
cp --parents 'r/index.html' '../snapshots'
78+
cp --parents 'r/getting-started/index.html' '../snapshots'
79+
cp --parents 'r/plotly-fundamentals/index.html' '../snapshots'
80+
cp --parents 'r/line-and-scatter/index.html' '../snapshots'
81+
cp --parents 'javascript/index.html' '../snapshots'
82+
cp --parents 'javascript/plotly-fundamentals/index.html' '../snapshots'
83+
cp --parents 'javascript/getting-started/index.html' '../snapshots'
84+
cp --parents 'javascript/line-and-scatter/index.html' '../snapshots'
85+
cp --parents 'ggplot2/index.html' '../snapshots'
86+
cp --parents 'ggplot2/getting-started/index.html' '../snapshots'
87+
cp --parents 'ggplot2/geom_abline/index.html' '../snapshots'
88+
cp --parents 'python/v3/index.html' '../snapshots'
89+
cp --parents 'python/v3/plotly-fundamentals/index.html' '../snapshots'
90+
cp --parents 'python/v3/getting-started/index.html' '../snapshots'
91+
cp --parents 'python/v3/line-and-scatter/index.html' '../snapshots'
92+
cp --parents 'matlab/index.html' '../snapshots'
93+
cp --parents 'matlab/getting-started/index.html' '../snapshots'
94+
cp --parents 'matlab/graphing-multiple-chart-types/index.html' '../snapshots'
95+
cp --parents 'matlab/scatter/index.html' '../snapshots'
96+
cd ..
97+
rm -f 'snapshots/all_static/javascripts/jquery-knob/index.html'
98+
rm -f 'snapshots/all_static/images/Plotly-feed2.html'
99+
rm -f 'snapshots/all_static/images/Plotly.html'
100+
rm -f 'snapshots/all_static/images/Plotly-Feed.html'
101+
sed -i.bkp 's/drift\.load/console\.log/g' snapshots/*.html
102+
sed -i.bkp 's/drift\.load/console\.log/g' snapshots/*/*.html
103+
sed -i.bkp 's/drift\.load/console\.log/g' snapshots/*/*/*.html
104+
rm -f snapshots/*.bkp
105+
rm -f snapshots/*/*.bkp
106+
rm -f snapshots/*/*/*.bkp
107+
percy snapshot snapshots --enable_javascript
108+
rm -rf 'snapshots/'
109+
if [ "${CIRCLE_BRANCH}" == "test-gld-ci-setup" ]; then
110+
git clone --depth=1 --branch=test-gld-ci-setup https://github.com/plotly/documentation.git
111+
git config user.name plotlydocbot
112+
git config user.email accounts@plot.ly
113+
cp -r _site/* documentation
114+
cd documentation
115+
git add .
116+
git commit -m "deploying https://github.com/plotly/graphing-libraries-docs/commit/${CIRCLE_SHA1}"
117+
git push
118+
cd ..
119+
rm -rf documentation
120+
fi

‎.github/FUNDING.yml

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
custom: https://plot.ly/products/consulting-and-oem/

0 commit comments

Comments
 (0)
Please sign in to comment.