Merge pull request #20 from FeynmanDNA/master
fix user page button link and setup algolia
diff --git a/docs-site/package.json b/docs-site/package.json
index defba1c..a700e00 100644
--- a/docs-site/package.json
+++ b/docs-site/package.json
@@ -61,13 +61,13 @@
},
"lint-staged": {
"*.{js,jsx}": [
- "yarn run lint:website",
"yarn run prettier:js",
+ "yarn run lint:website",
"git add"
],
"*.md": [
- "yarn run lint:docs",
"yarn run prettier:md",
+ "yarn run lint:docs",
"git add"
]
},
diff --git a/docs-site/website/pages/en/index.js b/docs-site/website/pages/en/index.js
index a8f1c3c..b26dfef 100644
--- a/docs-site/website/pages/en/index.js
+++ b/docs-site/website/pages/en/index.js
@@ -56,7 +56,7 @@
/>
<div className="index-hero-inner">
<img
- alt="SINGA-Ocean"
+ alt="SINGA-hero-banner"
className="index-hero-logo"
src={`${siteConfig.baseUrl}img/singa.png`}
/>
diff --git a/docs-site/website/siteConfig.js b/docs-site/website/siteConfig.js
index 7e202be..68c7757 100644
--- a/docs-site/website/siteConfig.js
+++ b/docs-site/website/siteConfig.js
@@ -37,8 +37,8 @@
title: "Apache SINGA", // Title for your website.
tagline: "Distributed deep learning system",
// temp staging github page using feynmanDNA's github
- url: "https://feynmandna.github.io",
- // url: "https://singa.apache.org", // Your website URL
+ // url: "https://feynmandna.github.io",
+ url: "https://singa.apache.org", // Your website URL
baseUrl: "/", // Base URL for your project */
// For github.io type URLs, you would set the url and baseUrl like:
// url: 'https://facebook.github.io',
@@ -62,10 +62,12 @@
// {page: 'help', label: 'Help'},
{ blog: true, label: "News" },
{ href: "https://apache-singa.readthedocs.io/en/latest/", label: "API" },
+ // algolia DocSearch
{ search: true },
// Determines language drop down position among links
+ // will need crowdin setup later
{ languages: true },
- // can change help.js to apache.js, optional
+ // main singa code base on github
{ href: mainRepoUrl, label: "GitHub" },
],
@@ -81,6 +83,16 @@
footerIcon: "img/singa-logo-square.png",
favicon: "img/favicon.ico",
+ /* algolia DocSearch setup for header */
+ algolia: {
+ apiKey: "45202133606c0b5fa6d21cddc4725dd8",
+ indexName: "apache_singa",
+ algoliaOptions: {
+ // different search results for the different versions or languages
+ facetFilters: ["language:LANGUAGE", "version:VERSION"],
+ },
+ },
+
/* Colors for website */
colors: {
// many of the colors are over-written in custom.css
@@ -147,7 +159,7 @@
enableUpdateTime: true,
// pass down the docsRepoUrl to footer (edit users with PR) etc
- // docsRepoUrl,
+ docsRepoUrl,
scrollToTop: true,
}