Add Katex
This commit is contained in:
parent
67d2880e6a
commit
ffa99483f1
|
@ -4,6 +4,9 @@
|
|||
const lightCodeTheme = require('prism-react-renderer/themes/github');
|
||||
const darkCodeTheme = require('prism-react-renderer/themes/dracula');
|
||||
|
||||
const math = require('remark-math');
|
||||
const katex = require('rehype-katex');
|
||||
|
||||
/** @type {import('@docusaurus/types').Config} */
|
||||
const config = {
|
||||
title: 'The Cwtch Handbook',
|
||||
|
@ -40,6 +43,8 @@ const config = {
|
|||
// Remove this to remove the "edit this page" links.
|
||||
editUrl:
|
||||
'https://git.openprivacy.ca/cwtch.im/docs.cwtch.im/src/branch/main/',
|
||||
remarkPlugins: [math],
|
||||
rehypePlugins: [katex],
|
||||
},
|
||||
blog: {
|
||||
feedOptions: {
|
||||
|
@ -52,11 +57,13 @@ const config = {
|
|||
},
|
||||
theme: {
|
||||
customCss: require.resolve('./src/css/custom.css'),
|
||||
|
||||
},
|
||||
|
||||
|
||||
}),
|
||||
],
|
||||
],
|
||||
|
||||
themeConfig:
|
||||
/** @type {import('@docusaurus/preset-classic').ThemeConfig} */
|
||||
({
|
||||
|
@ -108,6 +115,7 @@ const config = {
|
|||
},
|
||||
],
|
||||
},
|
||||
|
||||
footer: {
|
||||
links: [
|
||||
{
|
||||
|
@ -173,10 +181,17 @@ const config = {
|
|||
path: 'security',
|
||||
routeBasePath: 'security',
|
||||
sidebarPath: require.resolve('./sidebars.js'),
|
||||
remarkPlugins: [math],
|
||||
rehypePlugins: [katex],
|
||||
},
|
||||
],
|
||||
],
|
||||
|
||||
stylesheets: [
|
||||
{
|
||||
href: '/katex/katex.min.css',
|
||||
type: 'text/css',
|
||||
},
|
||||
],
|
||||
};
|
||||
|
||||
module.exports = config;
|
||||
|
|
|
@ -22,9 +22,12 @@
|
|||
"@docusaurus/preset-classic": "2.0.0-beta.20",
|
||||
"@mdx-js/react": "^1.6.22",
|
||||
"clsx": "^1.1.1",
|
||||
"hast-util-is-element": "1.1.0",
|
||||
"prism-react-renderer": "^1.3.1",
|
||||
"react": "^17.0.2",
|
||||
"react-dom": "^17.0.2"
|
||||
"react-dom": "^17.0.2",
|
||||
"rehype-katex": "5",
|
||||
"remark-math": "3"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@docusaurus/module-type-aliases": "2.0.0-beta.20"
|
||||
|
|
|
@ -4,9 +4,9 @@ sidebar_position: 2
|
|||
|
||||
# Authentication Protocol
|
||||
|
||||
Each peer, given an open connection \\(C\\):
|
||||
Each peer, given an open connection $C$:
|
||||
|
||||
\\[ \\
|
||||
$$
|
||||
I = \mathrm{InitializeIdentity()} \\\\
|
||||
I_e = \mathrm{InitializeEphemeralIdentity()} \\\\
|
||||
\\\\
|
||||
|
@ -17,8 +17,8 @@ k = \mathrm{KDF}({P_e}^{i} + {P}^{i_e} + {P_e}^{i_e}) \\\\
|
|||
c = \mathrm{E}(k, transcript.Commit()) \\\\
|
||||
c \rightarrow C \\\\
|
||||
c_p \leftarrow C \\\\
|
||||
\mathrm{D}(k, c_p) \stackrel{?}{=} transcript.LatestCommit() \\\\
|
||||
\\]
|
||||
\mathrm{D}(k, c_p) \stackrel{?}{=} transcript.LatestCommit()
|
||||
$$
|
||||
|
||||
The above represents a sketch protocol, in reality there are a few
|
||||
implementation details worth pointing out:
|
||||
|
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue