Skip to content

Commit

Permalink
fix(style): Add favicon
Browse files Browse the repository at this point in the history
  • Loading branch information
heyvito committed Oct 24, 2021
1 parent e129294 commit 3710f84
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -107,9 +107,9 @@ the `--root-path` and `--gh-pages` flags)
docker run --rm \
--volume ~/Developer/logrb:/work:ro \
--volume ~/Developer/logrb-docs:/output \
ghcr.io/heyvito/docrb:v0.1.0 \
ghcr.io/heyvito/docrb:v0.1.1 \
-blib \
--root-path=/loogrb \
--root-path=/logrb \
--gh-pages
```

Expand Down
4 changes: 4 additions & 0 deletions lib/docrb-react/pages/_document.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,17 @@ export default class MyDocument extends Document {
}

render() {
let basePath = process.env.NEXT_BASE_PATH || '';

return (
<Html>
<Head>
{this.props.styleTags}
<link rel="preconnect" href="https://fonts.googleapis.com" />
<link rel="preconnect" href="https://fonts.gstatic.com" crossOrigin="true" />
<link href="https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@300;400;500&family=Inter:wght@300;400;500&display=swap" rel="stylesheet" />
<link rel="shortcut icon" href={`${basePath}/favicon.ico`} type="image/x-icon" />
<link rel="icon" href={`${basePath}/favicon.ico`} type="image/x-icon" />
</Head>
<body>
<Main />
Expand Down
1 change: 1 addition & 0 deletions lib/docrb-react/pages/components/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ const ComponentsPage = () => {
<Head>
<title>
Components -
{' '}
{projectHeader.name}
{' '}
- Docrb
Expand Down
Binary file added lib/docrb-react/public/favicon.ico
Binary file not shown.

0 comments on commit 3710f84

Please sign in to comment.