Skip to content

Commit

Permalink
#44 Added document OGP
Browse files Browse the repository at this point in the history
  • Loading branch information
hamalt committed Aug 2, 2022
1 parent 2113779 commit 1b3474c
Show file tree
Hide file tree
Showing 17 changed files with 351 additions and 73 deletions.
6 changes: 3 additions & 3 deletions docusaurus/docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
sidebar_label: Scsaver.js
sidebar_position: 1
title: Readme | Scsaver.js Documents
# description:
description: An overview of Scsaver.js. Envisioned use cases, etc.
# image:
keywords: [Scsaver.js, Readme]
---
Expand All @@ -21,8 +21,8 @@ It is a JavaScript library to realize the function of the screen saver on the we
This program was used in an interactive video for booth installation.
(I created it because I had to display a different video or image than the interactive video if there was no action.)

## Assumed use case
## Envisioned use cases

- Screensaver for interactive video.
- Screensaver for tablet ordering system.
- Screensaver for web-based content.
- Screensaver for web-based content.
2 changes: 1 addition & 1 deletion docusaurus/docs/events.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
sidebar_label: Events
sidebar_position: 5
title: Events | Scsaver.js Documents
# description:
description: About events in Scsaver.js.
# image:
keywords: [Scsaver.js, Events]
---
Expand Down
3 changes: 1 addition & 2 deletions docusaurus/docs/getting-started.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@
sidebar_label: Getting Started
sidebar_position: 2
title: Getting Started | Scsaver.js Documents
# description:
# image:
description: How to getting started with Scsaver.js.
keywords: [Scsaver.js, Getting Started]
---

Expand Down
2 changes: 1 addition & 1 deletion docusaurus/docs/methods.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
sidebar_label: Methods
sidebar_position: 4
title: Methods | Scsaver.js Documents
# description:
description: About methods of Scsaver.js.
# image:
keywords: [scsaver.js, Methods]
---
Expand Down
3 changes: 1 addition & 2 deletions docusaurus/docs/options.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@
sidebar_label: Options
sidebar_position: 3
title: Options | Scsaver.js Documents
# description:
# image:
description: About Scsaver.js options.
keywords: [Scsaver.js, Options]
---

Expand Down
22 changes: 22 additions & 0 deletions docusaurus/docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,22 @@ const config = {
locales: ['en', 'jp'],
},

stylesheets: [
{
rel: 'preconnect',
href: 'https://fonts.googleapis.com',
},
{
rel: 'preconnect',
href: 'https://fonts.gstatic.com',
crossorigin: true,
},
{
rel: 'stylesheet',
href: 'https://fonts.googleapis.com/css2?family=Montserrat:wght@100;700;900&display=swap'
},
],

scripts: [
{
src: 'https://cdn.jsdelivr.net/npm/scsaver@latest/dist/scsaver.min.js',
Expand Down Expand Up @@ -62,6 +78,12 @@ const config = {
themeConfig:
/** @type {import('@docusaurus/preset-classic').ThemeConfig} */
({
metadata: [
{
property: 'og:image',
content: '/scsaver/img/scsaver_github_ogp.png',
}
],
colorMode: {
defaultMode: 'dark',
disableSwitch: true,
Expand Down
4 changes: 2 additions & 2 deletions docusaurus/src/components/HomepageFeatures/styles.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
align-items: center;
padding: 2rem 0;
width: 100%;
background-color: #232393;
background-color: var(--ifm-color-primary-lightest);
/* background-color: #1f1f4e; */
color: var(--ifm-color-primary-light);
color: var(--ifm-color-primary-darkest);
}

.featureSvg {
Expand Down
Loading

0 comments on commit 1b3474c

Please sign in to comment.