Skip to content

Commit 9181c3b

Browse files
DOC-4227: Merge new site config into main (#166)
* Re-organize repo * Optimize nav * Delete old playbooks * Update project files * Update start page * Update project files * DOC-4227: Migrate original ZDM documentation to new site (#165) --------- Co-authored-by: Eric Schneider <[email protected]>
1 parent 20d94b0 commit 9181c3b

File tree

99 files changed

+2105
-1523
lines changed

Some content is hidden

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

99 files changed

+2105
-1523
lines changed
Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
name: Dispatch Deploy to GitHub Pages
2+
3+
on:
4+
push:
5+
branches:
6+
- 'main'
7+
- 'stage'
8+
# Add additional content source branches here
9+
pull_request:
10+
branches:
11+
- '*'
12+
13+
jobs:
14+
dispatch-deploy:
15+
runs-on: ubuntu-latest
16+
17+
steps:
18+
# Determine the build branch and draft branch for dispatch.
19+
- name: Determine Dispatch Parameters
20+
run: |
21+
if [ "${{ github.event_name }}" == "pull_request" ]; then
22+
# If this workflow is kicked off by a pull request, build
23+
# a draft using the pull resource base branch and PR branch.
24+
build_branch="${{ github.base_ref }}"
25+
draft_branch="${{ github.event.pull_request.head.ref }}"
26+
else
27+
if [ "$(basename ${{ github.event.ref }})" == "stage" ]; then
28+
# This was a merge to stage so kick off a build to update stage draft.
29+
build_branch=stage
30+
draft_branch=stage
31+
else
32+
# Otherwise this is a push to one of the source branches so
33+
# dispatch a build for the main draft to pick up the changes.
34+
build_branch=main
35+
draft_branch=main
36+
fi
37+
fi
38+
echo "build_branch=$build_branch" >> $GITHUB_OUTPUT
39+
echo "draft_branch=$draft_branch" >> $GITHUB_OUTPUT
40+
id: branches
41+
42+
- name: Dispatch Deploy to GitHub Pages
43+
uses: convictional/[email protected]
44+
with:
45+
owner: riptano
46+
repo: datastax-docs-site
47+
github_token: ${{ secrets.DISPATCH_GITHUB_TOKEN }}
48+
github_user: mlr
49+
workflow_file_name: gh-pages-build.yml
50+
client_payload: '{ "build_repository": "${{ github.event.repository.full_name }}", "build_branch": "${{ steps.branches.outputs.build_branch }}", "draft_branch": "${{ steps.branches.outputs.draft_branch }}", "pull_request_number": "${{ github.event.pull_request.number }}" }'

.gitignore

Lines changed: 15 additions & 114 deletions
Original file line numberDiff line numberDiff line change
@@ -1,114 +1,15 @@
1-
build
2-
.DS_store
3-
*~
4-
package-lock.json
5-
.vscode
6-
.java-version
7-
8-
# Logs
9-
logs
10-
*.log
11-
npm-debug.log*
12-
yarn-debug.log*
13-
yarn-error.log*
14-
lerna-debug.log*
15-
16-
# Diagnostic reports (https://nodejs.org/api/report.html)
17-
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json
18-
19-
# Runtime data
20-
pids
21-
*.pid
22-
*.seed
23-
*.pid.lock
24-
25-
# Directory for instrumented libs generated by jscoverage/JSCover
26-
lib-cov
27-
28-
# Coverage directory used by tools like istanbul
29-
coverage
30-
*.lcov
31-
32-
# nyc test coverage
33-
.nyc_output
34-
35-
# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files)
36-
.grunt
37-
38-
# Bower dependency directory (https://bower.io/)
39-
bower_components
40-
41-
# node-waf configuration
42-
.lock-wscript
43-
44-
# Compiled binary addons (https://nodejs.org/api/addons.html)
45-
build/Release
46-
47-
# Dependency directories
48-
node_modules/
49-
jspm_packages/
50-
51-
# TypeScript v1 declaration files
52-
typings/
53-
54-
# TypeScript cache
55-
*.tsbuildinfo
56-
57-
# Optional npm cache directory
58-
.npm
59-
60-
# Optional eslint cache
61-
.eslintcache
62-
63-
# Microbundle cache
64-
.rpt2_cache/
65-
.rts2_cache_cjs/
66-
.rts2_cache_es/
67-
.rts2_cache_umd/
68-
69-
# Optional REPL history
70-
.node_repl_history
71-
72-
# Output of 'npm pack'
73-
*.tgz
74-
75-
# Yarn Integrity file
76-
.yarn-integrity
77-
78-
# dotenv environment variables file
79-
.env
80-
.env.test
81-
82-
# parcel-bundler cache (https://parceljs.org/)
83-
.cache
84-
85-
# Next.js build output
86-
.next
87-
88-
# Nuxt.js build / generate output
89-
.nuxt
90-
dist
91-
92-
# Gatsby files
93-
.cache/
94-
# Comment in the public line in if your project uses Gatsby and *not* Next.js
95-
# https://nextjs.org/blog/next-9-1#public-directory-support
96-
# public
97-
98-
# vuepress build output
99-
.vuepress/dist
100-
101-
# Serverless directories
102-
.serverless/
103-
104-
# FuseBox cache
105-
.fusebox/
106-
107-
# DynamoDB Local files
108-
.dynamodb/
109-
110-
# TernJS port file
111-
.tern-port
112-
113-
# IDE
114-
.idea/
1+
#OS
2+
**/.DS_Store
3+
**/.git-credentials
4+
5+
#IDE
6+
**/.vscode/
7+
**/.idea
8+
**/*.iml
9+
*.http
10+
**/.java-version
11+
12+
#build
13+
**/package-lock.json
14+
**/node_modules/
15+
/build/

0 commit comments

Comments
 (0)