prettier/website/siteConfig.js

49 lines
1.2 KiB
JavaScript
Raw Normal View History

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