File tree Expand file tree Collapse file tree 7 files changed +152
-0
lines changed Expand file tree Collapse file tree 7 files changed +152
-0
lines changed Original file line number Diff line number Diff line change
1
+ #! /bin/sh
2
+
3
+ # # Build external document first
4
+ echo " Building the external document"
5
+ cd /usr/src/app/source
6
+ mv index.html.external.md index.html.md
7
+ bundle exec middleman build --clean
8
+
9
+ # # Getting back to home folder
10
+ # # To move the generated files
11
+ # # To the external doc build folder
12
+ cd $GITHUB_WORKSPACE
13
+ mv /usr/src/app/build $EXTERNAL_DOC_BUILD
14
+
15
+ # # Build internal document next
16
+ echo " Building the internal document"
17
+ cd /usr/src/app/source
18
+ mv index.html.internal.md index.html.md
19
+ bundle exec middleman build --clean
20
+
21
+ # # Getting back to home folder
22
+ # # To move the generated files
23
+ # # To the internal doc build folder
24
+ cd $GITHUB_WORKSPACE
25
+ mv /usr/src/app/build $INTERNAL_DOC_BUILD
Original file line number Diff line number Diff line change
1
+ name : Build and Deploy
2
+
3
+ on :
4
+ push :
5
+ branches : [ 'master' ]
6
+
7
+ jobs :
8
+ build-and-deploy :
9
+ runs-on : ubuntu-18.04
10
+ env :
11
+ external-doc-build : external_build
12
+ internal-doc-build : internal_build
13
+
14
+ steps :
15
+ - name : Accessing github project files
16
+ uses : actions/checkout@v2
17
+
18
+ - name : Build external and internal document
19
+ # # Use our build docker file
20
+ # # Which sets up the ruby env to build the slate template
21
+ uses : ./
22
+ env :
23
+ EXTERNAL_DOC_BUILD : ${{ env.external-doc-build }}
24
+ INTERNAL_DOC_BUILD : ${{ env.internal-doc-build }}
25
+
26
+ - name : Deploy external documentation
27
+
28
+ with :
29
+ github_token : ${{ secrets.GH_TOKEN }}
30
+ publish_dir : ${{ env.external-doc-build }}
31
+ keep_files : false
32
+
33
+ - name : Deploy internal documentation
34
+
35
+ with :
36
+ github_token : ${{ secrets.GH_TOKEN }}
37
+ destination_dir : internal
38
+ publish_dir : ${{ env.internal-doc-build }}
39
+ keep_files : false
Original file line number Diff line number Diff line change
1
+ name : Verify
2
+
3
+ on :
4
+ push :
5
+ branches : [ '*' ]
6
+ pull_request :
7
+ branches : [ '*' ]
8
+
9
+ jobs :
10
+ verify-template-resource :
11
+ runs-on : ubuntu-latest
12
+
13
+ strategy :
14
+ matrix :
15
+ resource : [
16
+ " index.html.external.md" ,
17
+ " index.html.internal.md" ,
18
+ " fonts" ,
19
+ " includes" ,
20
+ " javascripts" ,
21
+ " layouts" ,
22
+ " stylesheets" ,
23
+ " downloads"
24
+ ]
25
+
26
+ steps :
27
+ - name : Accessing github project files
28
+ uses : actions/checkout@v2
29
+
30
+ - name : Validate Resource
31
+ run : |
32
+ RESOURCE_PATH=./source/${{ matrix.resource }}
33
+ RESOURCE_TYPE=-d
34
+ if [[ ${{ matrix.resource }} == *.* ]] ; then
35
+ RESOURCE_TYPE=-f
36
+ fi
37
+
38
+ if test $RESOURCE_TYPE "$RESOURCE_PATH"; then
39
+ echo "Resource $RESOURCE_PATH exists."
40
+ else
41
+ echo "Resource $RESOURCE_PATH does not exists."
42
+ exit 1
43
+ fi
44
+
Original file line number Diff line number Diff line change
1
+ FROM ruby:2.7-alpine
2
+
3
+ WORKDIR /usr/src/app
4
+
5
+ COPY .github/build.sh /usr/src/bin/
6
+
7
+ RUN gem install bundler
8
+
9
+ RUN apk --no-cache --update add nodejs g++ make coreutils git && \
10
+ git clone https://github.com/slatedocs/slate.git /usr/src/app && \
11
+ bundle install && \
12
+ chmod +x /usr/src/bin/*.sh
13
+
14
+ # # Remove the original source of slatedocs with our WIAPI docs
15
+ RUN rm -rf /usr/src/app/source
16
+ COPY source/ /usr/src/app/source/
17
+
18
+ CMD ["sh" , "/usr/src/bin/build.sh" ]
Original file line number Diff line number Diff line change
1
+ # DDC specific docs
2
+
3
+ All our secrets go here!!
File renamed without changes.
Original file line number Diff line number Diff line change
1
+ ---
2
+ title : Dealer.com Website Integration API Reference
3
+
4
+ language_tabs : # must be one of https://git.io/vQNgJ
5
+ - javascript
6
+
7
+ toc_footers :
8
+ - <a href='https://forms.dealer.com/integrated-partner-program.htm' target='_blank'>Sign Up for our Partner Program</a>
9
+
10
+ includes :
11
+ - introduction
12
+ - requirements
13
+ - events
14
+ - methods
15
+ - locations
16
+ - utilities
17
+ - jwt
18
+ - debugging
19
+ - internal
20
+ - samples
21
+
22
+ search : true
23
+ ---
You can’t perform that action at this time.
0 commit comments