-
Notifications
You must be signed in to change notification settings - Fork 701
[Docs] New website #1109
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
[Docs] New website #1109
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 9b62697
replace /docs dir
jpdriver f02d361
set baseUrl and change build out-dir
jpdriver 23738cf
re-add formideploy and config
jpdriver fefd4a4
update docs GH Actions workflow
jpdriver f83c681
fix incorrect build out-dir path
jpdriver b17bd68
re-enable GTM
jpdriver d9a315e
lint website dir too
jpdriver 4c397cb
restore brand colors to sidebar
jpdriver 94b13ab
Merge branch 'main' into jp-docusaurus
jpdriver a5e8168
commenting out dup nav item
ryansrofe abc720b
adding styled components and types, oss-badges, copy-to-clipboard
ryansrofe b149beb
touch when adding libs
ryansrofe 66991fa
adding statis assets from previous codebase, refactored file organiza…
ryansrofe 92be4ee
removing infima based styles in favor of styled components
ryansrofe be66542
integrating previous non-typescript codebase to typescript for lander
ryansrofe c7b20bf
optional props
ryansrofe 38cc8e7
fix header svg and video issues
ryansrofe ccc9c2e
Update get-started.tsx
ryansrofe c1fcb6e
updating button styles
ryansrofe e5d978e
autoPlay still breaks the Video
ryansrofe a3b9df1
include fix for PR number in Docs GH Action
jpdriver 74b8943
Merge branch 'main' into jp-docusaurus
jpdriver 87ee4c0
adding autoPlay back to video
ryansrofe 0d4b235
adding and updating libs
ryansrofe 4f850d9
added, removed, reorganized, and renamed various static asset files
ryansrofe 88bfe1d
moved to index dir
ryansrofe ac7258b
Delete custom.css
ryansrofe 2491777
various updates to config for docusaurus
ryansrofe 90cfa54
grok'd for old code, bridge between compiled CSS vars and JS
ryansrofe ba43494
various global styles
ryansrofe 5056a8e
the heart of our CSS customizations happens in this file
ryansrofe 388580b
import paths, added content as props, and theme provider
ryansrofe d38c3ca
overhaul of the preview section
ryansrofe 4b890d4
overhaul of the oss section
ryansrofe e41f0f6
overhaul of the header and hero sections
ryansrofe 8fd172f
overhaul of the get started CTA section
ryansrofe ba20327
overhaul of the features section
ryansrofe d9443a4
all content for the site comes from this file and is passed down via …
ryansrofe 91a0fde
overhaul of various global components used like wrappers, buttons, ti…
ryansrofe cc6c66e
removing getComputedStyle as it's unneeded and causes an SSR issue
ryansrofe 44e91b5
adding engines <18
ryansrofe b2d9cd0
docs for testing second level
ryansrofe 397ab68
touch update to libs
ryansrofe e2529d0
swapped icon for logo and removed old code
ryansrofe b208ce3
remove the privacy and cookie stuff
ryansrofe 5f3cb07
design adjustments
ryansrofe 016f91a
fix bug where copy button switches color depending on color mode
ryansrofe 520cb0b
how dare they use any-link
ryansrofe cf62b0a
adding new theme value
ryansrofe 8f2197a
design updates and cleanup
ryansrofe 3703dcb
fixing broken link preventing build from completing
ryansrofe e3d4c1e
update h1 to uppercase
ryansrofe ac0929a
add label for small screens
ryansrofe e01e32f
hero h1 uppercase
ryansrofe 1b78822
mobile adjustments
ryansrofe ce22d37
design tweaks
ryansrofe 0ff9c15
bug fix for broken link
ryansrofe cebf262
additional design updates
ryansrofe f31863a
update lib to 2.0-rc-1
ryansrofe 6055ff5
fix typo
ryansrofe df11331
adding a temp external link for testing
ryansrofe 3bb4214
naming cleanup
ryansrofe 3c600ef
documentation of styles
ryansrofe fcf83f4
fix odd spacing
ryansrofe a31c3f7
adding overrides for prism styles
ryansrofe 05f43bb
refactor function to utils
ryansrofe 8fdb614
cleanup and refactor to global, light, dark sections
ryansrofe 1044d76
footer logo link and mobile style adjustment
ryansrofe f467f30
adding width and height to images
ryansrofe f59adf5
adding height auto so images can resize properly
ryansrofe 7af38d1
auto height
ryansrofe 65dbdc4
adding a height to see if that will contain the badge
ryansrofe 8ceb55e
hover color to white
ryansrofe 83a47f6
remove testing link
ryansrofe 7d5ff16
font color to 454545
ryansrofe 696e6ed
restore index.md page and filter from Sidebar
jpdriver 1cc6589
adding redirects docusaurus plugin
ryansrofe 684cbe4
rewiring basic-concepts to be index for docs
ryansrofe 9371e24
comments
ryansrofe 97b04a9
Merge branch 'jp-docusaurus' of github.com:FormidableLabs/spectacle i…
ryansrofe 1b9fae0
remove swizzled sidebar
ryansrofe 44f92ad
ripping styles components and replacing with css modules
ryansrofe 378c4e9
updating to 2.0
ryansrofe 6b7c0a3
touch
ryansrofe 7bc2eae
converting all rem values to be 37.5% smaller
ryansrofe 3ff95b7
fixing grid and badge alignment
ryansrofe 188d008
spacing adjustments
ryansrofe 45377f6
consolidating values to variables round 1
ryansrofe 6224c09
consolidating values to variables round 2
ryansrofe 7fa5d3a
adding new darkest grey for prism background in dark mode
ryansrofe 75b07d1
smoothing out animations, adding clsx where needed
ryansrofe 0ab7926
removing testing MD files
ryansrofe 896dd10
Merge branch 'main' into jp-docusaurus
gksander 5b8406f
Remove some JSX.Element
gksander ea4edb0
Small tweak to docusaurus config
gksander b5df347
Slim prism config
gksander 0f154a8
Prune some commented-out CSS
gksander 5983c18
Remove superfluous && className
gksander 0fbae7f
Dedup romanize fn
gksander ff26962
Update docs.yml
gksander 7a28520
Docs footer logo fix
gksander 6de94ff
Add robots.txt
gksander ea64366
SEO fixes
gksander File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 }} | ||
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,6 +1,7 @@ | ||
| --- | ||
| title: API Reference | ||
| order: 5 | ||
| sidebar_position: 5 | ||
| --- | ||
|
|
||
| # API Reference | ||
|
|
||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.