Skip to content

Commit

Permalink
initial files for repo
Browse files Browse the repository at this point in the history
Signed-off-by: Mark <[email protected]>
  • Loading branch information
mark-plummer committed Jan 11, 2023
1 parent 88265fa commit b3492fc
Show file tree
Hide file tree
Showing 11 changed files with 168 additions and 0 deletions.
Binary file added .DS_Store
Binary file not shown.
46 changes: 46 additions & 0 deletions antora-playbook.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
site:
title: ThoughtSpot Documentation
url: https://help-cloud-thoughtspot.netlify.app
start_page: home::index.adoc
content:
sources:
# embedding empty credentials in the URL disables the Edit this Page link for any page created from this repository
- url: .
branches: HEAD
start_path: home
- url: [email protected]:thoughtspot/thoughtspot-docs.git
# Cloud docs branches
branches: ['8.9.0.cl','8.10.0.cl']
start_path: cloud/
urls:
# latest_version_segment_strategy: redirect:to
# latest_version_segment: latest
html_extension_style: drop
ui:
bundle:
# url: https://gitlab.com/antora/antora-ui-default/-/jobs/artifacts/master/raw/build/ui-bundle.zip?job=bundle-stable
url: ui-bundle/ui2-bundle.zip
supplemental_files:
- path: .nojekyll
- path: ui.yml
contents: "static_files: [ .nojekyll ]"
snapshot: true
asciidoc:
attributes:
#software: true
#cloud: false
help: ''
page-company: ThoughtSpot
tabs: tabs
support-url: https://community.thoughtspot.com/customers/s/contactsupport[ThoughtSpot Support^]
seekwell: SeekWell
cl-subscription-agreement: https://www.thoughtspot.com/legal/thoughtspot-cloud-subscription-agreement[subscription agreement^]
extensions:
- "@djencks/asciidoctor-tabset-block"
output:
clean: true
dir: build/
runtime:
fetch: true
log:
level: error
11 changes: 11 additions & 0 deletions git-rt.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#! /bin/sh

branch=$(git symbolic-ref HEAD | sed -e 's,.*/\(.*\),\1,')

git fetch upstream

git rebase upstream/$branch

git push origin $branch

exit 0
Binary file added home/.DS_Store
Binary file not shown.
3 changes: 3 additions & 0 deletions home/antora.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
name: home
title: Home
version: main
Binary file added home/modules/.DS_Store
Binary file not shown.
Binary file added home/modules/ROOT/.DS_Store
Binary file not shown.
67 changes: 67 additions & 0 deletions home/modules/ROOT/pages/index.adoc
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
= Welcome to ThoughtSpot Software Help
:page-layout: home

++++
<style>
.home h2, .home h3, .home h4, .home h5, .home h6, .doc h1, .doc h2, .doc h3, .doc h4, .doc h5, .doc h6 {
color: #444;
font-weight: 500;
font-family: Optimo-Plain,sans-serif;
-webkit-hyphens: none;
-ms-hyphens: none;
hyphens: none;
line-height: 1.3;
margin: 1rem 0 0;
}
h2#_whats_new_in_thoughtspot_cloud {
font-weight: 450;
font-size: larger;
}
h3#_previous_releases_cloud {
font-weight: 300;
font-size: medium;
}
.dlist dt {
font-style: normal !important;
}
b, dt, strong, th {
font-weight: 500;
font-size: .84444rem;
line-height: 1.6;
}
.home .box-wide p {
margin: medium;
color: #444;
font-size: .84444rem;
line-height: 1.6;
}
.box-wide-columns {
width: 82%;
margin: 0 auto;
padding-right: 25px;
}
</style>
++++

[.lead]
**Choose your documentation:**
[.conceal-title]
== {empty}
++++
<div class="box-button-columns">
<div class="box-button"><a href="https://help-software-thoughtspot.netlify.app/software/latest" class="panel-2">
<span><img src="_images/software.png" id="software-icon">
<h2>
Cloud
</h2>
<p>Deploy and manage ThoughtSpot in your own private cloud.</p></span>
</a></div>
</div>
++++
29 changes: 29 additions & 0 deletions netlify.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
[build.environment]
CI = "true"
NODE_VERSION = "10"
NPM_CONFIG_OPTIONAL = "false"
ANTORA_CACHE_DIR = "node_modules/.cache/antora"

[build]
command = "node_modules/.bin/antora antora-playbook.yml --stacktrace --log-format=pretty"
# security policies
[[headers]]
for = "/*"
[headers.values]
Content-Security-Policy = "default-src * 'unsafe-eval' 'unsafe-inline' data: filesystem: about: blob:;"
# redirect any netlify address url to real address
# redirect for home of sw and cloud docs

# Algolia pendo search test redirect

[[redirects]]
from = "https://help-cloud-thoughtspot.netlify.app/cloud/latest/"
to = "https://help-cloud-thoughtspot.netlify.app/cloud/latest/index-help"
status = 301
force = true # COMMENT: ensure that we always redirect

[[redirects]]
from = "https://help-cloud-thoughtspot.netlify.app/cloud/8.9.0.cl/"
to = "https://help-cloud-thoughtspot.netlify.app/cloud/8.9.0.cl/index-help"
status = 301
force = true # COMMENT: ensure that we always redirect
12 changes: 12 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"private": "true",
"scripts": {
"plain-install": "npm i --cache=.cache/npm --no-optional",
"build": "antora antora-playbook.yml --stacktrace --fetch --clean"
},
"devDependencies": {
"@antora/cli": "3.0.0-alpha.7",
"@antora/site-generator-default": "3.0.0-alpha.7",
"@djencks/asciidoctor-tabset-block": "https://experimental-repo.s3-us-west-1.amazonaws.com/djencks-asciidoctor-tabset-block-v0.0.3.tgz"
}
}
Binary file added ui-bundle/ui2-bundle.zip
Binary file not shown.

0 comments on commit b3492fc

Please sign in to comment.