From 11988f568d2b8854ec12818792cc6c1f0f9ffc55 Mon Sep 17 00:00:00 2001 From: Ryan Roemer Date: Fri, 10 Jan 2020 12:42:05 -0800 Subject: [PATCH] Fix slug generation and numbers. --- .gitignore | 1 + docs/content/tutorial.md | 4 ++-- docs/scripts/deploy/aws.js | 3 +-- docs/src/screens/docs/sidebar.js | 1 + 4 files changed, 5 insertions(+), 4 deletions(-) diff --git a/.gitignore b/.gitignore index 5569ad01e..c1ddaa11b 100644 --- a/.gitignore +++ b/.gitignore @@ -11,6 +11,7 @@ test/screenshots # production /dist /tmp +/docs/tmp # misc .DS_Store diff --git a/docs/content/tutorial.md b/docs/content/tutorial.md index b1e42f575..e10b14135 100644 --- a/docs/content/tutorial.md +++ b/docs/content/tutorial.md @@ -377,7 +377,7 @@ export default class Presentation extends React.Component { } ``` -## 6. Add animations +## 7. Add animations Using the core Spectacle API, we can supply transition props like `transition` and `transitionDuration` to our `Deck` and `Slide` components to make the presentation more animated, without adding any new imports: @@ -517,7 +517,7 @@ Additionally, you could bring in other core components, like `Anim` and `Appear` ``` -## 7. Add code examples +## 8. Add code examples Finally, you have a couple of options for displaying code content. `CodePane` and `ComponentPlayground` both offer ways to display code, but they differ in a fundamental way: `CodePane` is a styled, highlighted code preview, while `ComponentPlayground` is a two-paned view with source on the right and a preview pane on the left for showing off custom React components. diff --git a/docs/scripts/deploy/aws.js b/docs/scripts/deploy/aws.js index 2fdea4023..a4f8ac550 100644 --- a/docs/scripts/deploy/aws.js +++ b/docs/scripts/deploy/aws.js @@ -6,8 +6,7 @@ const chalk = require('chalk'); const execa = require('execa'); const PROJECT = 'spectacle'; -// TODO(docs): Convert to real location when ready for full release. -const DOCS_PATH = `open-source/${PROJECT}-TODO-TESTING`; +const DOCS_PATH = `open-source/${PROJECT}`; const SRC = path.resolve(__dirname, '../../dist'); const BUCKET_NAME = 'formidable.com'; diff --git a/docs/src/screens/docs/sidebar.js b/docs/src/screens/docs/sidebar.js index d8201eaab..07f98a1ba 100644 --- a/docs/src/screens/docs/sidebar.js +++ b/docs/src/screens/docs/sidebar.js @@ -80,6 +80,7 @@ class Sidebar extends React.Component { {subContent.map(sh => { const slug = `#${sh.content + .replace('.', '') .split(' ') .join('-') .toLowerCase()}`;