2017-07-02 03:14:24 +03:00
|
|
|
"use strict";
|
|
|
|
|
2017-11-07 12:47:21 +03:00
|
|
|
// Docs: https://docusaurus.io/docs/en/site-config.html
|
|
|
|
|
2017-07-02 03:14:24 +03:00
|
|
|
const PACKAGE = require("../package");
|
|
|
|
const GITHUB_URL = `https://github.com/${PACKAGE.repository}`;
|
|
|
|
|
2017-07-03 13:48:05 +03:00
|
|
|
const users = require("./users");
|
|
|
|
const editors = require("./editors");
|
|
|
|
const supportedLanguages = require("./languages");
|
2017-07-02 03:14:24 +03:00
|
|
|
|
|
|
|
const siteConfig = {
|
|
|
|
title: "Prettier",
|
2017-11-07 12:47:21 +03:00
|
|
|
tagline: "Opinionated Code Formatter",
|
2017-07-02 03:14:24 +03:00
|
|
|
githubUrl: GITHUB_URL,
|
|
|
|
url: PACKAGE.homepage,
|
|
|
|
baseUrl: "/",
|
|
|
|
projectName: PACKAGE.name,
|
|
|
|
repo: PACKAGE.repository,
|
2017-08-11 22:34:32 +03:00
|
|
|
cname: "prettier.io",
|
2017-07-02 03:14:24 +03:00
|
|
|
users,
|
2017-07-03 13:48:05 +03:00
|
|
|
editors,
|
|
|
|
supportedLanguages,
|
2017-07-02 03:14:24 +03:00
|
|
|
/* base url for editing docs, usage example: editUrl + 'en/doc1.md' */
|
|
|
|
editUrl: `${GITHUB_URL}/edit/master/docs/`,
|
2017-08-11 22:34:32 +03:00
|
|
|
headerLinks: [
|
2017-11-07 06:39:07 +03:00
|
|
|
{ doc: "index", label: "About" },
|
|
|
|
{ doc: "install", label: "Usage" },
|
2017-08-11 22:34:32 +03:00
|
|
|
{ href: "/playground/", label: "Playground" },
|
|
|
|
{ href: GITHUB_URL, label: "GitHub" }
|
2017-07-02 03:14:24 +03:00
|
|
|
],
|
|
|
|
/* path to images for header/footer */
|
|
|
|
headerIcon: "icon.png",
|
|
|
|
footerIcon: "icon.png",
|
|
|
|
favicon: "icon.png",
|
|
|
|
/* colors for website */
|
|
|
|
colors: {
|
|
|
|
primaryColor: "#1A2B34",
|
2017-11-07 12:47:21 +03:00
|
|
|
secondaryColor: "#808080"
|
2017-07-02 03:14:24 +03:00
|
|
|
},
|
2017-11-07 12:47:21 +03:00
|
|
|
highlight: {
|
|
|
|
theme: "default"
|
|
|
|
},
|
|
|
|
useEnglishUrl: true,
|
|
|
|
scripts: ["https://buttons.github.io/buttons.js"]
|
2017-07-02 03:14:24 +03:00
|
|
|
};
|
|
|
|
|
|
|
|
module.exports = siteConfig;
|