Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
104 commits
Select commit Hold shift + click to select a range
d5ac40d
scaffold new Docusaurus site
jpdriver Apr 9, 2022
9b62697
replace /docs dir
jpdriver Apr 20, 2022
f02d361
set baseUrl and change build out-dir
jpdriver Apr 20, 2022
23738cf
re-add formideploy and config
jpdriver Apr 20, 2022
fefd4a4
update docs GH Actions workflow
jpdriver Apr 20, 2022
f83c681
fix incorrect build out-dir path
jpdriver Apr 20, 2022
b17bd68
re-enable GTM
jpdriver Apr 20, 2022
d9a315e
lint website dir too
jpdriver Apr 24, 2022
4c397cb
restore brand colors to sidebar
jpdriver May 24, 2022
94b13ab
Merge branch 'main' into jp-docusaurus
jpdriver May 26, 2022
a5e8168
commenting out dup nav item
ryansrofe Jun 13, 2022
abc720b
adding styled components and types, oss-badges, copy-to-clipboard
ryansrofe Jun 13, 2022
b149beb
touch when adding libs
ryansrofe Jun 13, 2022
66991fa
adding statis assets from previous codebase, refactored file organiza…
ryansrofe Jun 13, 2022
92be4ee
removing infima based styles in favor of styled components
ryansrofe Jun 13, 2022
be66542
integrating previous non-typescript codebase to typescript for lander
ryansrofe Jun 13, 2022
c7b20bf
optional props
ryansrofe Jun 14, 2022
38cc8e7
fix header svg and video issues
ryansrofe Jun 14, 2022
ccc9c2e
Update get-started.tsx
ryansrofe Jun 14, 2022
c1fcb6e
updating button styles
ryansrofe Jun 14, 2022
e5d978e
autoPlay still breaks the Video
ryansrofe Jun 14, 2022
a3b9df1
include fix for PR number in Docs GH Action
jpdriver Jun 14, 2022
74b8943
Merge branch 'main' into jp-docusaurus
jpdriver Jun 14, 2022
87ee4c0
adding autoPlay back to video
ryansrofe Jun 14, 2022
0d4b235
adding and updating libs
ryansrofe Jul 7, 2022
4f850d9
added, removed, reorganized, and renamed various static asset files
ryansrofe Jul 7, 2022
88bfe1d
moved to index dir
ryansrofe Jul 7, 2022
ac7258b
Delete custom.css
ryansrofe Jul 7, 2022
2491777
various updates to config for docusaurus
ryansrofe Jul 7, 2022
90cfa54
grok'd for old code, bridge between compiled CSS vars and JS
ryansrofe Jul 7, 2022
ba43494
various global styles
ryansrofe Jul 7, 2022
5056a8e
the heart of our CSS customizations happens in this file
ryansrofe Jul 7, 2022
388580b
import paths, added content as props, and theme provider
ryansrofe Jul 7, 2022
d38c3ca
overhaul of the preview section
ryansrofe Jul 7, 2022
4b890d4
overhaul of the oss section
ryansrofe Jul 7, 2022
e41f0f6
overhaul of the header and hero sections
ryansrofe Jul 7, 2022
8fd172f
overhaul of the get started CTA section
ryansrofe Jul 7, 2022
ba20327
overhaul of the features section
ryansrofe Jul 7, 2022
d9443a4
all content for the site comes from this file and is passed down via …
ryansrofe Jul 7, 2022
91a0fde
overhaul of various global components used like wrappers, buttons, ti…
ryansrofe Jul 7, 2022
cc6c66e
removing getComputedStyle as it's unneeded and causes an SSR issue
ryansrofe Jul 7, 2022
44e91b5
adding engines <18
ryansrofe Jul 7, 2022
b2d9cd0
docs for testing second level
ryansrofe Jul 13, 2022
397ab68
touch update to libs
ryansrofe Jul 13, 2022
e2529d0
swapped icon for logo and removed old code
ryansrofe Jul 13, 2022
b208ce3
remove the privacy and cookie stuff
ryansrofe Jul 13, 2022
5f3cb07
design adjustments
ryansrofe Jul 13, 2022
016f91a
fix bug where copy button switches color depending on color mode
ryansrofe Jul 13, 2022
520cb0b
how dare they use any-link
ryansrofe Jul 13, 2022
cf62b0a
adding new theme value
ryansrofe Jul 13, 2022
8f2197a
design updates and cleanup
ryansrofe Jul 13, 2022
3703dcb
fixing broken link preventing build from completing
ryansrofe Jul 13, 2022
e3d4c1e
update h1 to uppercase
ryansrofe Jul 13, 2022
ac0929a
add label for small screens
ryansrofe Jul 13, 2022
e01e32f
hero h1 uppercase
ryansrofe Jul 13, 2022
1b78822
mobile adjustments
ryansrofe Jul 13, 2022
ce22d37
design tweaks
ryansrofe Jul 13, 2022
0ff9c15
bug fix for broken link
ryansrofe Jul 13, 2022
cebf262
additional design updates
ryansrofe Jul 13, 2022
f31863a
update lib to 2.0-rc-1
ryansrofe Jul 15, 2022
6055ff5
fix typo
ryansrofe Jul 15, 2022
df11331
adding a temp external link for testing
ryansrofe Jul 18, 2022
3bb4214
naming cleanup
ryansrofe Jul 18, 2022
3c600ef
documentation of styles
ryansrofe Jul 18, 2022
fcf83f4
fix odd spacing
ryansrofe Jul 19, 2022
a31c3f7
adding overrides for prism styles
ryansrofe Jul 19, 2022
05f43bb
refactor function to utils
ryansrofe Jul 19, 2022
8fdb614
cleanup and refactor to global, light, dark sections
ryansrofe Jul 19, 2022
1044d76
footer logo link and mobile style adjustment
ryansrofe Jul 19, 2022
f467f30
adding width and height to images
ryansrofe Jul 19, 2022
f59adf5
adding height auto so images can resize properly
ryansrofe Jul 19, 2022
7af38d1
auto height
ryansrofe Jul 19, 2022
65dbdc4
adding a height to see if that will contain the badge
ryansrofe Jul 19, 2022
8ceb55e
hover color to white
ryansrofe Jul 19, 2022
83a47f6
remove testing link
ryansrofe Jul 19, 2022
7d5ff16
font color to 454545
ryansrofe Jul 19, 2022
696e6ed
restore index.md page and filter from Sidebar
jpdriver Jul 19, 2022
1cc6589
adding redirects docusaurus plugin
ryansrofe Jul 21, 2022
684cbe4
rewiring basic-concepts to be index for docs
ryansrofe Jul 21, 2022
9371e24
comments
ryansrofe Jul 21, 2022
97b04a9
Merge branch 'jp-docusaurus' of github.com:FormidableLabs/spectacle i…
ryansrofe Jul 21, 2022
1b9fae0
remove swizzled sidebar
ryansrofe Jul 21, 2022
44f92ad
ripping styles components and replacing with css modules
ryansrofe Aug 1, 2022
378c4e9
updating to 2.0
ryansrofe Aug 1, 2022
6b7c0a3
touch
ryansrofe Aug 2, 2022
7bc2eae
converting all rem values to be 37.5% smaller
ryansrofe Aug 3, 2022
3ff95b7
fixing grid and badge alignment
ryansrofe Aug 3, 2022
188d008
spacing adjustments
ryansrofe Aug 3, 2022
45377f6
consolidating values to variables round 1
ryansrofe Aug 4, 2022
6224c09
consolidating values to variables round 2
ryansrofe Aug 4, 2022
7fa5d3a
adding new darkest grey for prism background in dark mode
ryansrofe Aug 5, 2022
75b07d1
smoothing out animations, adding clsx where needed
ryansrofe Aug 5, 2022
0ab7926
removing testing MD files
ryansrofe Aug 5, 2022
896dd10
Merge branch 'main' into jp-docusaurus
gksander Aug 8, 2022
5b8406f
Remove some JSX.Element
gksander Aug 8, 2022
ea4edb0
Small tweak to docusaurus config
gksander Aug 8, 2022
b5df347
Slim prism config
gksander Aug 8, 2022
0f154a8
Prune some commented-out CSS
gksander Aug 8, 2022
5983c18
Remove superfluous && className
gksander Aug 8, 2022
0fbae7f
Dedup romanize fn
gksander Aug 8, 2022
ff26962
Update docs.yml
gksander Aug 8, 2022
7a28520
Docs footer logo fix
gksander Aug 8, 2022
6de94ff
Add robots.txt
gksander Aug 8, 2022
ea64366
SEO fixes
gksander Aug 8, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
87 changes: 40 additions & 47 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
@@ -1,82 +1,75 @@
name: Docs
name: Deploy Website

defaults:
run:
working-directory: ./docs

# Compiles and deploys documentation on:
# every push that has a change in the docs folder
# every pull request with main branch as the base and has a change in the docs folder
on:
push:
paths:
- 'docs/**'
- 'website/**'
pull_request:
branches:
- main
paths:
- 'docs/**'
- 'website/**'

defaults:
run:
working-directory: ./website

jobs:
docs:
name: Build the docs
# TODO: Switch to `ubuntu-latest` when GH internal migration complete
# because it has awscli@2 built in.
# See `ubuntu-latest` note in: https://docs.github.com/en/actions/reference/specifications-for-github-hosted-runners#supported-runners-and-hardware-resources
runs-on: ubuntu-20.04
strategy:
matrix:
node-version: [14.x]
deploy-website:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}

- name: Get Yarn Cache Directory Path
id: cache-dir-path
- name: AWS CLI version
run: "aws --version"

- name: Get yarn cache directory path
id: yarn-cache-dir-path
run: echo "::set-output name=dir::$(yarn cache dir)"

- name: Use Yarn Cache
uses: actions/cache@v2
id: cache
- uses: actions/cache@v2
id: yarn-cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`)
with:
path: ${{ steps.cache-dir-path.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('./docs/yarn.lock') }}

- name: Installation ${{ matrix.node-version }}
run: yarn --prefer-offline --frozen-lockfile --non-interactive

# Used to install the root node_modules necessary for linting
- name: Root Node Installation ${{ matrix.node-version }}
working-directory: ./
run: yarn --prefer-offline --frozen-lockfile --non-interactive

- name: Check Code ${{ matrix.node-version }}
run: yarn check-ci
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('website/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-

- name: Clean Code ${{ matrix.node-version }}
run: yarn clean
- name: Install Dependencies
run: yarn install --frozen-lockfile

- name: Build Docs ${{ matrix.node-version }}
- name: Build the website
run: yarn build

# deploy to staging if the branch is not main
- name: Deploy Docs (staging)
# Use `gh` tool to infer more information about the pull request.
# The underlying issue here is pushes to a non-mergeable/main target branch
# don't have the PR number easily available.
# https://stackoverflow.com/a/70102700
- name: Get pull request info
id: pr_info
run: echo "::set-output name=pull_request_number::$(gh pr view --json number -q .number || echo "")"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Deploy docs (staging)
if: github.ref != 'refs/heads/main'
run: yarn deploy:stage
env:
# GH actions have a PR merge commit that _isn't_ our actual commits.
# Manually infer correct branch and sha for pull requests.
FORMIDEPLOY_GIT_SHA: ${{ github.event.pull_request.head.sha }}
FORMIDEPLOY_PULL_REQUEST: ${{ steps.pr_info.outputs.pull_request_number }}
GITHUB_DEPLOYMENT_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SURGE_LOGIN: ${{ secrets.SURGE_LOGIN }}
SURGE_TOKEN: ${{ secrets.SURGE_TOKEN }}

# deploy to production only if the branch is main
- name: Deploy docs (production)
if: github.ref == 'refs/heads/main'
run: yarn run deploy:prod
run: yarn deploy:prod
env:
GITHUB_DEPLOYMENT_TOKEN: ${{ secrets.GITHUB_TOKEN }}
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}

AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
4 changes: 0 additions & 4 deletions docs/.babelrc

This file was deleted.

91 changes: 0 additions & 91 deletions docs/README.md

This file was deleted.

11 changes: 6 additions & 5 deletions docs/content/advanced-concepts.md → docs/advanced-concepts.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
---
title: Advanced Concepts
order: 2
sidebar_position: 2
---

# Advanced Concepts
Expand Down Expand Up @@ -29,8 +30,8 @@ A handful of query parameters are supported within your Spectacle presentation.
Append your URL with one of the following parameters, like so: `&<parameter>=true`.
To combine parameters, use multiple `&` to separate the parameters, e.g.: `&exportMode=true&printMode=true`

| Parameter | Description of Use |
| --------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `exportMode` | For exporting your presentation as a PDF. Add it to your project URL and "Save to PDF" directly from the browser |
| `printMode` | Turns your slideshow into a printer-friendly, black & white version. Meant for use concurrently with `?exportMode` e.g. `?exportMode=true&printMode=true` |
| `presenterMode` | Displays a Presenter Mode for ease of presentation. For more info on this mode, please see [Presenting](./basic-concepts#presenting) in our Basic Concepts doc |
| Parameter | Description of Use |
| --------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `exportMode` | For exporting your presentation as a PDF. Add it to your project URL and "Save to PDF" directly from the browser |
| `printMode` | Turns your slideshow into a printer-friendly, black & white version. Meant for use concurrently with `?exportMode` e.g. `?exportMode=true&printMode=true` |
| `presenterMode` | Displays a Presenter Mode for ease of presentation. For more info on this mode, please see [Presenting](./#presenting) in our Basic Concepts doc |
1 change: 1 addition & 0 deletions docs/content/api-reference.md → docs/api-reference.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
---
title: API Reference
order: 5
sidebar_position: 5
---

# API Reference
Expand Down
Loading