Skip to content

Commit

Permalink
feat: Add favicon option (#1207)
Browse files Browse the repository at this point in the history
  • Loading branch information
irgendwr authored and tmcw committed Feb 22, 2019
1 parent fb0a27f commit 5b045f2
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 4 deletions.
2 changes: 1 addition & 1 deletion __tests__/__snapshots__/test.js.snap
Expand Up @@ -1388,12 +1388,12 @@ exports[`html nested.input.js 1`] = `
<head>
<meta charset='utf-8' />
<title> | Documentation</title>
<meta name='description' content='a documentation generator'>
<meta name='viewport' content='width=device-width,initial-scale=1'>
<link href='assets/bass.css' rel='stylesheet' />
<link href='assets/style.css' rel='stylesheet' />
<link href='assets/github.css' rel='stylesheet' />
<link href='assets/split.css' rel='stylesheet' />
<meta name='description' content='a documentation generator'>
</head>
<body class='documentation m0'>
<div class='flex'>
Expand Down
1 change: 1 addition & 0 deletions docs/USAGE.md
Expand Up @@ -24,6 +24,7 @@ Options:
package.json
--project-homepage project homepage. by default, inferred from
package.json
--favicon favicon used in html
--watch, -w watch input files and rebuild documentation when
they change [boolean]
--markdown-toc include a table of contents in markdown output
Expand Down
3 changes: 3 additions & 0 deletions src/commands/shared_options.js
Expand Up @@ -106,6 +106,9 @@ module.exports.sharedOutputOptions = {
'project-homepage': {
describe: 'project homepage. by default, inferred from package.json'
},
favicon: {
describe: 'favicon used in html'
},
format: {
alias: 'f',
default: 'json',
Expand Down
7 changes: 4 additions & 3 deletions src/default_theme/index._
Expand Up @@ -2,13 +2,14 @@
<html>
<head>
<meta charset='utf-8' />
<title><%- config['project-name'] %> <%- config['project-version'] %> | Documentation</title>
<title><%- config['project-name'] %> <%- config['project-version'] %> | Documentation</title><% if (config['project-description']) { %>
<meta name='description' content='<%- config['project-description'] %>'><% } %>
<meta name='viewport' content='width=device-width,initial-scale=1'>
<link href='assets/bass.css' rel='stylesheet' />
<link href='assets/style.css' rel='stylesheet' />
<link href='assets/github.css' rel='stylesheet' />
<link href='assets/split.css' rel='stylesheet' /><% if (config['project-description']) { %>
<meta name='description' content='<%- config['project-description'] %>'><% } %>
<link href='assets/split.css' rel='stylesheet' /><% if (config['favicon']) { %>
<link href='<%- config['favicon'] %>' rel='icon' ><% } %>
</head>
<body class='documentation m0'>
<div class='flex'>
Expand Down

0 comments on commit 5b045f2

Please sign in to comment.