-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #45 from JuliaConstraints/output
Move doc to DocumenterVitepress
- Loading branch information
Showing
8 changed files
with
280 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
build/ | ||
node_modules/ | ||
package-lock.json | ||
Manifest.toml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
[deps] | ||
Documenter = "e30172f5-a6a5-5a46-863b-614d45cd2de4" | ||
DocumenterVitepress = "4710194d-e776-4893-9690-8d956a29c365" | ||
PerfChecker = "6309bf6b-a531-4b08-891e-8ee981e5c424" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,24 @@ | ||
using PerfChecker | ||
using Documenter | ||
using Documenter, DocumenterVitepress | ||
|
||
DocMeta.setdocmeta!(PerfChecker, :DocTestSetup, :(using PerfChecker); recursive = true) | ||
using PerfChecker | ||
|
||
makedocs(; | ||
modules = [PerfChecker], | ||
authors = "Azzaare <[email protected]>", | ||
repo = "https://github.com/JuliaConstraints/PerfChecker.jl/blob/{commit}{path}#{line}", | ||
authors = "azzaare <[email protected]>", | ||
repo = "https://github.com/JuliaConstraints/PerfChecker.jl", | ||
sitename = "PerfChecker.jl", | ||
format = Documenter.HTML(; | ||
prettyurls = get(ENV, "CI", "false") == "true", | ||
canonical = "https://JuliaConstraints.github.io/PerfChecker.jl", | ||
assets = String[] | ||
format = DocumenterVitepress.MarkdownVitepress( | ||
repo = "https://github.com/JuliaConstraints/PerfChecker.jl", | ||
devurl = "dev", | ||
deploy_url = "JuliaConstraints.github.io/PerfChecker.jl" | ||
), | ||
pages = [ | ||
"Home" => "index.md" | ||
] | ||
], | ||
warnonly = true | ||
) | ||
|
||
deploydocs(; | ||
repo = "github.com/JuliaConstraints/PerfChecker.jl", | ||
devbranch = "main" | ||
push_preview = true | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
{ | ||
"scripts": { | ||
"docs:dev": "vitepress dev build/.documenter", | ||
"docs:build": "vitepress build build/.documenter", | ||
"docs:preview": "vitepress preview build/.documenter" | ||
}, | ||
"dependencies": { | ||
"@shikijs/transformers": "^1.1.7", | ||
"markdown-it": "^14.1.0", | ||
"markdown-it-footnote": "^4.0.0", | ||
"markdown-it-mathjax3": "^4.3.2", | ||
"vitepress": "^1.1.4", | ||
"vitepress-plugin-tabs": "^0.5.0" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
import { defineConfig } from 'vitepress' | ||
import { tabsMarkdownPlugin } from 'vitepress-plugin-tabs' | ||
import mathjax3 from "markdown-it-mathjax3"; | ||
import footnote from "markdown-it-footnote"; | ||
|
||
// https://vitepress.dev/reference/site-config | ||
export default defineConfig({ | ||
base: 'REPLACE_ME_DOCUMENTER_VITEPRESS',// TODO: replace this in makedocs! | ||
title: 'REPLACE_ME_DOCUMENTER_VITEPRESS', | ||
description: "A VitePress Site", | ||
lastUpdated: true, | ||
cleanUrls: true, | ||
outDir: 'REPLACE_ME_DOCUMENTER_VITEPRESS', // This is required for MarkdownVitepress to work correctly... | ||
head: [['link', { rel: 'icon', href: 'REPLACE_ME_DOCUMENTER_VITEPRESS_FAVICON' }]], | ||
ignoreDeadLinks: true, | ||
|
||
markdown: { | ||
math: true, | ||
config(md) { | ||
md.use(tabsMarkdownPlugin), | ||
md.use(mathjax3), | ||
md.use(footnote) | ||
}, | ||
theme: { | ||
light: "github-light", | ||
dark: "github-dark"} | ||
}, | ||
themeConfig: { | ||
outline: 'deep', | ||
logo: 'REPLACE_ME_DOCUMENTER_VITEPRESS', | ||
search: { | ||
provider: 'local', | ||
options: { | ||
detailedView: true | ||
} | ||
}, | ||
nav: 'REPLACE_ME_DOCUMENTER_VITEPRESS', | ||
sidebar: 'REPLACE_ME_DOCUMENTER_VITEPRESS', | ||
editLink: 'REPLACE_ME_DOCUMENTER_VITEPRESS', | ||
socialLinks: [ | ||
{ icon: 'github', link: 'REPLACE_ME_DOCUMENTER_VITEPRESS' } | ||
], | ||
footer: { | ||
message: 'Made with <a href="https://luxdl.github.io/DocumenterVitepress.jl/dev/" target="_blank"><strong>DocumenterVitepress.jl</strong></a><br>', | ||
copyright: `© Copyright ${new Date().getUTCFullYear()}.` | ||
} | ||
} | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
// .vitepress/theme/index.ts | ||
import { h } from 'vue' | ||
import type { Theme } from 'vitepress' | ||
import DefaultTheme from 'vitepress/theme' | ||
|
||
import { enhanceAppWithTabs } from 'vitepress-plugin-tabs/client' | ||
import './style.css' | ||
|
||
export default { | ||
extends: DefaultTheme, | ||
Layout() { | ||
return h(DefaultTheme.Layout, null, { | ||
// https://vitepress.dev/guide/extending-default-theme#layout-slots | ||
}) | ||
}, | ||
enhanceApp({ app, router, siteData }) { | ||
enhanceAppWithTabs(app) | ||
} | ||
} satisfies Theme |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,179 @@ | ||
@import url(https://fonts.googleapis.com/css?family=Space+Mono:regular,italic,700,700italic); | ||
@import url(https://fonts.googleapis.com/css?family=Space+Grotesk:regular,italic,700,700italic); | ||
|
||
/* Customize default theme styling by overriding CSS variables: | ||
https://github.com/vuejs/vitepress/blob/main/src/client/theme-default/styles/vars.css | ||
*/ | ||
|
||
/* Layouts */ | ||
|
||
/* | ||
:root { | ||
--vp-layout-max-width: 1440px; | ||
} */ | ||
|
||
.VPHero .clip { | ||
white-space: pre; | ||
max-width: 500px; | ||
} | ||
|
||
/* Fonts */ | ||
|
||
:root { | ||
/* Typography */ | ||
--vp-font-family-base: "Barlow", "Inter var experimental", "Inter var", | ||
-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, | ||
Cantarell, "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif; | ||
|
||
/* Code Snippet font */ | ||
--vp-font-family-mono: "Space Mono", Menlo, Monaco, Consolas, "Courier New", | ||
monospace; | ||
} | ||
|
||
.mono { | ||
/* | ||
Disable contextual alternates (kind of like ligatures but different) in monospace, | ||
which turns `/>` to an up arrow and `|>` (the Julia pipe symbol) to an up arrow as well. | ||
This is pretty bad for Julia folks reading even though copy+paste retains the same text. | ||
*/ | ||
font-feature-settings: 'calt' 0; | ||
} | ||
|
||
/* Colors */ | ||
|
||
:root { | ||
--julia-blue: #4063D8; | ||
--julia-purple: #9558B2; | ||
--julia-red: #CB3C33; | ||
--julia-green: #389826; | ||
|
||
--vp-c-brand: #389826; | ||
--vp-c-brand-light: #3dd027; | ||
--vp-c-brand-lighter: #9499ff; | ||
--vp-c-brand-lightest: #bcc0ff; | ||
--vp-c-brand-dark: #535bf2; | ||
--vp-c-brand-darker: #454ce1; | ||
--vp-c-brand-dimm: #212425; | ||
} | ||
|
||
/* Component: Button */ | ||
|
||
:root { | ||
--vp-button-brand-border: var(--vp-c-brand-light); | ||
--vp-button-brand-text: var(--vp-c-white); | ||
--vp-button-brand-bg: var(--vp-c-brand); | ||
--vp-button-brand-hover-border: var(--vp-c-brand-light); | ||
--vp-button-brand-hover-text: var(--vp-c-white); | ||
--vp-button-brand-hover-bg: var(--vp-c-brand-light); | ||
--vp-button-brand-active-border: var(--vp-c-brand-light); | ||
--vp-button-brand-active-text: var(--vp-c-white); | ||
--vp-button-brand-active-bg: var(--vp-button-brand-bg); | ||
} | ||
|
||
/* Component: Home */ | ||
|
||
:root { | ||
--vp-home-hero-name-color: transparent; | ||
--vp-home-hero-name-background: -webkit-linear-gradient( | ||
120deg, | ||
#9558B2 30%, | ||
#CB3C33 | ||
); | ||
|
||
--vp-home-hero-image-background-image: linear-gradient( | ||
-45deg, | ||
#9558B2 30%, | ||
#389826 30%, | ||
#CB3C33 | ||
); | ||
--vp-home-hero-image-filter: blur(40px); | ||
} | ||
|
||
@media (min-width: 640px) { | ||
:root { | ||
--vp-home-hero-image-filter: blur(56px); | ||
} | ||
} | ||
|
||
@media (min-width: 960px) { | ||
:root { | ||
--vp-home-hero-image-filter: blur(72px); | ||
} | ||
} | ||
|
||
/* Component: Custom Block */ | ||
|
||
:root.dark { | ||
--vp-custom-block-tip-border: var(--vp-c-brand); | ||
--vp-custom-block-tip-text: var(--vp-c-brand-lightest); | ||
--vp-custom-block-tip-bg: var(--vp-c-brand-dimm); | ||
|
||
/* // Tweak the color palette for blacks and dark grays */ | ||
--vp-c-black: hsl(220 20% 9%); | ||
--vp-c-black-pure: hsl(220, 24%, 4%); | ||
--vp-c-black-soft: hsl(220 16% 13%); | ||
--vp-c-black-mute: hsl(220 14% 17%); | ||
--vp-c-gray: hsl(220 8% 56%); | ||
--vp-c-gray-dark-1: hsl(220 10% 39%); | ||
--vp-c-gray-dark-2: hsl(220 12% 28%); | ||
--vp-c-gray-dark-3: hsl(220 12% 23%); | ||
--vp-c-gray-dark-4: hsl(220 14% 17%); | ||
--vp-c-gray-dark-5: hsl(220 16% 13%); | ||
|
||
/* // Backgrounds */ | ||
/* --vp-c-bg: hsl(240, 2%, 11%); */ | ||
--vp-custom-block-info-bg: hsl(220 14% 17%); | ||
/* --vp-c-gutter: hsl(220 20% 9%); | ||
--vp-c-bg-alt: hsl(220 20% 9%); | ||
--vp-c-bg-soft: hsl(220 14% 17%); | ||
--vp-c-bg-mute: hsl(220 12% 23%); | ||
*/ | ||
} | ||
|
||
/* Component: Algolia */ | ||
|
||
.DocSearch { | ||
--docsearch-primary-color: var(--vp-c-brand) !important; | ||
} | ||
|
||
/* Component: MathJax */ | ||
|
||
mjx-container > svg { | ||
display: block; | ||
margin: auto; | ||
} | ||
|
||
mjx-container { | ||
padding: 0.5rem 0; | ||
} | ||
|
||
mjx-container { | ||
display: inline-block; | ||
margin: auto 2px -2px; | ||
} | ||
|
||
mjx-container > svg { | ||
margin: auto; | ||
display: inline-block; | ||
} | ||
|
||
/** | ||
* Colors links | ||
* -------------------------------------------------------------------------- */ | ||
|
||
:root { | ||
--vp-c-brand-1: #CB3C33; | ||
--vp-c-brand-2: #CB3C33; | ||
--vp-c-brand-3: #CB3C33; | ||
--vp-c-sponsor: #ca2971; | ||
--vitest-c-sponsor-hover: #c13071; | ||
} | ||
|
||
.dark { | ||
--vp-c-brand-1: #91dd33; | ||
--vp-c-brand-2: #91dd33; | ||
--vp-c-brand-3: #91dd33; | ||
--vp-c-sponsor: #91dd33; | ||
--vitest-c-sponsor-hover: #e51370; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,7 @@ | ||
```@meta | ||
CurrentModule = PerfChecker | ||
``` | ||
|
||
# PerfChecker | ||
# PerfChecker.jl | ||
|
||
Documentation for [PerfChecker](https://github.com/JuliaConstraints/PerfChecker.jl). | ||
|
||
```@index | ||
``` | ||
Documentation for `PerfChecker.jl`. | ||
|
||
```@autodocs | ||
Modules = [PerfChecker] | ||
Modules=[PerfChecker] | ||
``` |