* Sync README -> docs/options.md * Sync README -> docs/*.md * Misc fixups * Remove markdown-toc * Remove insert-pragma from ToC * Never again! * Move all docs to ./docs * Remove yarn toc * Fix inter-doc links * Fix links in footer * Clean up README.md * Add basic description to README.md * Use flat badges * Move editor guides to website * Improve prettier-ignore docs * Fixup bad find/replace * Add JSON to README * Fix custom parser API link * Fixup GitHub centering, add downloads badge * Add 1.8 docs * docs(website): mention markdown on homepage (#1) * Add intro * Add watching-files.md * Fix markdown syntax highlighting * Switch back to .md links
45 lines
1.2 KiB
JavaScript
45 lines
1.2 KiB
JavaScript
"use strict";
|
|
|
|
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",
|
|
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",
|
|
prismColor:
|
|
"rgba(26, 43, 52, 0.03)" /* primaryColor in rgba form, with 0.03 alpha */
|
|
},
|
|
tagline: "Opinionated Code Formatter",
|
|
useEnglishUrl: true
|
|
};
|
|
|
|
module.exports = siteConfig;
|