Skip to content

Commit

Permalink
update gitignores, added intro page, css fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Enubia committed Jun 11, 2021
1 parent 430a3e0 commit 43b37c3
Show file tree
Hide file tree
Showing 7 changed files with 66 additions and 31 deletions.
21 changes: 0 additions & 21 deletions .gitignore
Expand Up @@ -61,24 +61,3 @@ schema.graphql

# webstorm
.idea

# Dependencies
/node_modules

# Production
/www/build

# Generated files
/www/.docusaurus
/www/.cache-loader

# Misc
.DS_Store
.env.local
.env.development.local
.env.test.local
.env.production.local

/api

/www/typedoc-sidebar.js
18 changes: 18 additions & 0 deletions www/.gitignore
@@ -0,0 +1,18 @@
# Dependencies
/node_modules

# Production
/build

# Generated files
.docusaurus
.cache-loader

# Misc
.DS_Store
.env.local
.env.development.local
.env.test.local
.env.production.local

/typedoc-sidebar.js
1 change: 1 addition & 0 deletions www/docs/.gitignore
@@ -0,0 +1 @@
api
33 changes: 23 additions & 10 deletions www/docusaurus.config.js
Expand Up @@ -16,17 +16,12 @@ module.exports = {
},
items: [
{
to: 'docs/api',
label: 'API',
},
{
label: 'Guides',
to: '/guides',
label: 'Intro',
to: '/intro',
},
{
href: 'https://github.com/chriskalmar/shyft',
label: 'GitHub',
position: 'right',
to: 'docs/api',
label: 'API',
},
],
},
Expand All @@ -40,7 +35,7 @@ module.exports = {
to: '/docs/api',
},
{
label: 'Guides',
label: 'Intro',
to: '/guides',
},
],
Expand All @@ -51,6 +46,21 @@ module.exports = {
label: 'GitHub',
href: 'https://github.com/chriskalmar/shyft',
},
{
html: `
<a
class="github-button"
href="https://github.com/chriskalmar/shyft"
data-color-scheme="no-preference: light; light: light; dark: dark;"
data-icon="octicon-star"
data-size="large"
data-show-count="true"
aria-label="Star chriskalmar/shyft on GitHub"
>
Star
</a>
`,
},
],
},
],
Expand Down Expand Up @@ -81,6 +91,9 @@ module.exports = {
tsconfig: '../tsconfig.json',
readme: 'none',
exclude: '**/*+(index|.spec|.e2e).ts',
excludePrivate: true,
excludeExternals: true,
includeVersion: true,
},
],
],
Expand Down
1 change: 1 addition & 0 deletions www/src/css/custom.css
Expand Up @@ -23,6 +23,7 @@ body {
}

.navbar {
box-shadow: none;
padding-left: 10%;
padding-right: 10%;
}
Expand Down
5 changes: 5 additions & 0 deletions www/src/pages/index.js
Expand Up @@ -3,6 +3,7 @@ import React from 'react';
import clsx from 'clsx';
import Layout from '@theme/Layout';
import Link from '@docusaurus/Link';
import Head from '@docusaurus/Head';
import useDocusaurusContext from '@docusaurus/useDocusaurusContext';
import styles from './index.module.css';
import HomepageFeatures from '../components/HomepageFeatures';
Expand Down Expand Up @@ -39,6 +40,10 @@ export default function Home() {
const { siteConfig } = useDocusaurusContext();
return (
<Layout title={siteConfig.title}>
<Head>
<script async defer src="https://buttons.github.io/buttons.js"></script>
<title />
</Head>
<HomepageHeader />
<main>
<HomepageFeatures />
Expand Down
18 changes: 18 additions & 0 deletions www/src/pages/intro.js
@@ -0,0 +1,18 @@
/* eslint-disable @typescript-eslint/no-var-requires,import/no-unresolved */
import React from 'react';
import Layout from '@theme/Layout';
import Head from '@docusaurus/Head';
import useDocusaurusContext from '@docusaurus/useDocusaurusContext';

export default function Intro() {
const siteConfig = useDocusaurusContext();

return (
<Layout title={siteConfig.title}>
<Head>
<script async defer src="https://buttons.github.io/buttons.js"></script>
<title />
</Head>
</Layout>
);
}

0 comments on commit 43b37c3

Please sign in to comment.