summaryrefslogtreecommitdiffstats
path: root/packages/gitbook-plugin-theme-default/src/components/Sidebar.js
diff options
context:
space:
mode:
Diffstat (limited to 'packages/gitbook-plugin-theme-default/src/components/Sidebar.js')
-rw-r--r--packages/gitbook-plugin-theme-default/src/components/Sidebar.js21
1 files changed, 21 insertions, 0 deletions
diff --git a/packages/gitbook-plugin-theme-default/src/components/Sidebar.js b/packages/gitbook-plugin-theme-default/src/components/Sidebar.js
index ab628df..fd10730 100644
--- a/packages/gitbook-plugin-theme-default/src/components/Sidebar.js
+++ b/packages/gitbook-plugin-theme-default/src/components/Sidebar.js
@@ -3,6 +3,25 @@ const { React } = GitBook;
const Summary = require('./Summary');
+/**
+ * The GitBook trademark.
+ * @type {ReactClass}
+ */
+const GitBookTrademark = React.createClass({
+ render() {
+ return (
+ <a className="GitBookTrademark" href="https://www.gitbook.com/?utm_source=gitbook&utm_medium=trademark" target="_blank">
+ <span>Published with <b>GitBook</b></span>
+ <GitBook.Image src="gitbook/theme-default/images/logo.svg" />
+ </a>
+ );
+ }
+});
+
+/**
+ * Sidebar containing a serch bar, the table of contents, and the GitBook trademark.
+ * @type {ReactClass}
+ */
const Sidebar = React.createClass({
propTypes: {
summary: GitBook.PropTypes.Summary
@@ -16,6 +35,8 @@ const Sidebar = React.createClass({
<div className="Sidebar book-summary">
<GitBook.InjectedComponent matching={{ role: 'search:container:input' }} />
<Summary summary={summary} />
+
+ <GitBookTrademark />
</div>
</div>
);