Skip to content

Commit

Permalink
Make some real pages
Browse files Browse the repository at this point in the history
  • Loading branch information
shioyama committed Dec 21, 2020
1 parent 8bcb495 commit 59f8af5
Show file tree
Hide file tree
Showing 22 changed files with 78 additions and 233 deletions.
4 changes: 4 additions & 0 deletions website/docs/backends.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
---
id: backends
title: Backends
---
4 changes: 4 additions & 0 deletions website/docs/column.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
---
id: column
title: Column Backend
---
4 changes: 4 additions & 0 deletions website/docs/configuration.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
---
id: configuration
title: Configuration
---
4 changes: 4 additions & 0 deletions website/docs/dirty_tracking.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
---
id: dirty_tracking
title: Dirty Tracking
---
203 changes: 0 additions & 203 deletions website/docs/doc1.md

This file was deleted.

6 changes: 0 additions & 6 deletions website/docs/doc2.md

This file was deleted.

14 changes: 0 additions & 14 deletions website/docs/doc3.md

This file was deleted.

4 changes: 4 additions & 0 deletions website/docs/fallbacks.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
---
id: fallbacks
title: Fallbacks
---
4 changes: 4 additions & 0 deletions website/docs/fallthrough_accessors.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
---
id: fallthrough_accessors
title: Fallthrough Accessors
---
4 changes: 4 additions & 0 deletions website/docs/getting_started.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
---
id: getting_started
title: Getting Started
---
4 changes: 4 additions & 0 deletions website/docs/installation.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
---
id: installation
title: Installation
---
5 changes: 5 additions & 0 deletions website/docs/intro.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
id: intro
title: Introduction
slug: /
---
4 changes: 4 additions & 0 deletions website/docs/json.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
---
id: json
title: JSON/JSONB Backends
---
4 changes: 4 additions & 0 deletions website/docs/key_value.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
---
id: key_value
title: KeyValue Backend
---
4 changes: 4 additions & 0 deletions website/docs/locale_accessors.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
---
id: locale_accessors
title: Locale Accessors
---
4 changes: 4 additions & 0 deletions website/docs/plugins.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
---
id: plugins
title: Plugins
---
4 changes: 4 additions & 0 deletions website/docs/table.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
---
id: table
title: Table Backend
---
5 changes: 5 additions & 0 deletions website/docs/upgrading_to_version_1.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
id: upgrading_to_version_1
title: Upgrading to 1.0
slug: /upgrading-to-version-1
---
8 changes: 2 additions & 6 deletions website/docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,8 @@ module.exports = {
title: 'Docs',
items: [
{
label: 'Style Guide',
to: 'docs/',
},
{
label: 'Second Doc',
to: 'docs/doc2/',
label: 'Getting Started',
to: 'docs/getting-started',
},
],
},
Expand Down
6 changes: 4 additions & 2 deletions website/sidebars.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
module.exports = {
someSidebar: {
Docusaurus: ['doc1', 'doc2', 'doc3'],
Features: ['mdx'],
'Getting Started': ['intro', 'installation', 'configuration', 'upgrading_to_version_1'],
Design: ['plugins', 'backends'],
Backends: ['key_value', 'table', 'column', 'json'],
Plugins: ['locale_accessors', 'fallthrough_accessors', 'dirty_tracking', 'fallbacks'],
},
};
8 changes: 8 additions & 0 deletions website/src/css/custom.css
Original file line number Diff line number Diff line change
Expand Up @@ -45,3 +45,11 @@ h2 {
section {
margin-bottom: 50px;
}

.hero {
padding-bottom: 1.5rem;
}

.main-wrapper {
margin-bottom: 2rem;
}
4 changes: 2 additions & 2 deletions website/src/pages/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ function Hero() {
const context = useDocusaurusContext();
const { siteConfig = {} } = context;
return (
<header className={clsx('hero hero--light', styles.heroBanner)}>
<header className='hero hero--light'>
<div className="container margin-vert--lg">
<h1 className="hero__title">{siteConfig.title}</h1>
<p className="hero__subtitle">{siteConfig.tagline}</p>
Expand All @@ -140,7 +140,7 @@ function Hero() {
'button button--outline button--primary button--lg',
styles.getStarted,
)}
to={useBaseUrl('docs/getting-started')}>
to={useBaseUrl('docs/installation')}>
Get Started
</Link>
<Link
Expand Down

0 comments on commit 59f8af5

Please sign in to comment.