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 505964c
Show file tree
Hide file tree
Showing 7 changed files with 16 additions and 233 deletions.
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.

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 505964c

Please sign in to comment.