Skip to content

Commit f02632c

Browse files
committed
Docs: update homepage features
1 parent 2503fc2 commit f02632c

File tree

2 files changed

+38
-14
lines changed

2 files changed

+38
-14
lines changed

web/docusaurus.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import {themes as prismThemes} from 'prism-react-renderer';
99
/** @type {import('@docusaurus/types').Config} */
1010
const config = {
1111
title: 'TCFrame',
12-
tagline: 'A test generation framework.',
12+
tagline: 'A test generation framework for competitive programming problems.',
1313
favicon: 'img/logo.png',
1414

1515
// Set the production url of your site here

web/src/components/HomepageFeatures/index.js

Lines changed: 37 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,38 +1,62 @@
11
import clsx from 'clsx';
2+
import CodeBlock from '@theme/CodeBlock';
23
import Heading from '@theme/Heading';
34
import styles from './styles.module.css';
45

6+
const ioFormats =
7+
`void InputFormat() {
8+
LINE(N);
9+
LINES(A) % SIZE(N);
10+
}
11+
12+
void OutputFormat() {
13+
LINE(answer);
14+
}
15+
`
16+
17+
const constraints =
18+
`void Constraints() {
19+
CONS(1 <= N && N <= 1000);
20+
CONS(eachElementBetween(A, 1, 1000000));
21+
}`
22+
23+
const testCases =
24+
`void TestCases() {
25+
CASE(N = 1, A = {10});
26+
CASE(N = 100, randomArray());
27+
}`
28+
529
const FeatureList = [
630
{
7-
title: 'Various problem types',
31+
title: 'Define input/output formats',
832
description: (
9-
<>
10-
Supports batch and interactive problems, as well as ICPC- and IOI-style problems.
11-
</>
33+
<CodeBlock language="cpp">
34+
{ioFormats}
35+
</CodeBlock>
1236
),
1337
},
1438
{
15-
title: 'I/O format validation',
39+
title: 'Define constraints',
1640
description: (
17-
<>
18-
Input/output formats can be validated declaratively.
19-
</>
41+
<CodeBlock language="cpp">
42+
{constraints}
43+
</CodeBlock>
2044
),
2145
},
2246
{
23-
title: 'Local grading',
47+
title: 'Define test cases',
2448
description: (
25-
<>
26-
Solutions can be tested locally against generated test cases.
27-
</>
49+
<CodeBlock language="cpp">
50+
{testCases}
51+
</CodeBlock>
2852
),
2953
},
3054
];
3155

3256
function Feature({Svg, title, description}) {
3357
return (
3458
<div className={clsx('col col--4')}>
35-
<div className="text--center padding-horiz--md">
59+
<div className="padding-horiz--md">
3660
<Heading as="h3">{title}</Heading>
3761
<p>{description}</p>
3862
</div>

0 commit comments

Comments
 (0)