mirror of
https://github.com/Smaug123/KaTeX
synced 2025-10-08 04:28:41 +00:00
KaTeX website & documentation (#1484)
* website/docs: initial commit * Change secondaryColor * Fix index.css not being copied and included on global stylesheet * Fix stylesheet link [skip ci] * Change documentation link to API(Usage) [skip ci] * Add `Libraries` in usage [skip ci] * Remove documentation from `README.md` and add link to the site [skip ci] * Use KaTeX in the parent directory to build Markdown [skip ci] * Revise function support page. Avoid error msgs. * General edit to function support page
This commit is contained in:
committed by
Kevin Barabash
parent
83e8eac0a5
commit
8a38035855
84
website/siteConfig.js
Normal file
84
website/siteConfig.js
Normal file
@@ -0,0 +1,84 @@
|
||||
/**
|
||||
* Copyright (c) 2017-present, Facebook, Inc.
|
||||
*
|
||||
* This source code is licensed under the MIT license found in the
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
*/
|
||||
|
||||
// See https://docusaurus.io/docs/site-config.html for all the possible
|
||||
// site configuration options.
|
||||
|
||||
/* List of projects/orgs using your project for the users page */
|
||||
const users = [
|
||||
{
|
||||
caption: 'GitLab',
|
||||
image: 'https://gitlab.com/gitlab-com/gitlab-artwork/raw/master/logo/logo-square.png',
|
||||
infoLink: 'https://gitlab.com/',
|
||||
pinned: true,
|
||||
},
|
||||
];
|
||||
|
||||
const siteConfig = {
|
||||
title: 'KaTeX',
|
||||
tagline: 'The fastest math typesetting library for the web',
|
||||
url: 'https://khan.github.io',
|
||||
baseUrl: '/KaTeX/',
|
||||
|
||||
// Used for publishing and more
|
||||
projectName: 'KaTeX',
|
||||
organizationName: 'Khan',
|
||||
|
||||
headerLinks: [
|
||||
{doc: 'node', label: 'Docs'},
|
||||
{page: 'users', label: 'Users'},
|
||||
{href: 'https://github.com/Khan/KaTeX', label: 'GitHub'},
|
||||
{search: true},
|
||||
],
|
||||
|
||||
// If you have users set above, you add it here:
|
||||
users,
|
||||
|
||||
/* path to images for header/footer */
|
||||
headerIcon: 'img/katex-logo.svg',
|
||||
footerIcon: 'img/katex-logo.svg',
|
||||
favicon: 'https://khan.github.io/favicon.ico',
|
||||
|
||||
disableHeaderTitle: true,
|
||||
|
||||
/* colors for website */
|
||||
colors: {
|
||||
primaryColor: '#329894',
|
||||
secondaryColor: '#266e6c',
|
||||
},
|
||||
|
||||
// This copyright info is used in /core/Footer.js and blog rss/atom feeds.
|
||||
copyright:
|
||||
'Copyright © ' +
|
||||
new Date().getFullYear() +
|
||||
' Khan Academy',
|
||||
|
||||
highlight: {
|
||||
// Highlight.js theme to use for syntax highlighting in code blocks
|
||||
theme: 'default',
|
||||
},
|
||||
|
||||
markdownPlugins: [function(md) {
|
||||
md.use(require('./remarkableKatex'));
|
||||
}],
|
||||
|
||||
scripts: ['https://buttons.github.io/buttons.js'],
|
||||
stylesheets: ['https://cdn.jsdelivr.net/npm/katex@0.10.0-beta/dist/katex.min.css'],
|
||||
|
||||
separateCss: ['static/static', 'static\\static'],
|
||||
|
||||
/* On page navigation for the current documentation page */
|
||||
onPageNav: 'separate',
|
||||
|
||||
/* Open Graph and Twitter card images */
|
||||
ogImage: 'img/og_logo.png',
|
||||
twitterImage: 'img/og_logo.png',
|
||||
|
||||
repoUrl: 'https://github.com/Khan/KaTeX',
|
||||
};
|
||||
|
||||
module.exports = siteConfig;
|
Reference in New Issue
Block a user