Skip to content

Commit 83cab9a

Browse files
committed
docs: add example documents and preview PDF links to documentation
1 parent d299b6a commit 83cab9a

5 files changed

Lines changed: 59 additions & 0 deletions

File tree

docs/README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,3 +32,7 @@ This project includes support for:
3232
- **Chinese documents** - See the `zh/` directory for templates
3333

3434
Each language has its own style files and examples to help you get started.
35+
36+
## Preview PDF Examples
37+
38+
You can preview example PDF output files without having to compile them yourself by visiting the [GitHub Releases page](https://github.com/jiahaoxiang2000/typesetting/releases). There you'll find pre-compiled PDF examples of reports, notes, slides and other document types in both supported languages.

docs/examples.md

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
# Example Documents
2+
3+
This page showcases example documents created with our LaTeX typesetting system. You can view these PDF files directly in your browser.
4+
5+
## Chinese Documents
6+
7+
### Note Template
8+
9+
This is an example of a note document created with the Chinese note template.
10+
11+
[PDF Embed](https://github.com/jiahaoxiang2000/typesetting/releases/download/v0.3.4/note-zh.pdf ":pdf")
12+
13+
### Report Template
14+
15+
This is an example of a report document created with the Chinese report template.
16+
17+
[PDF Embed](https://github.com/jiahaoxiang2000/typesetting/releases/download/v0.3.4/report-zh.pdf ":pdf")
18+
19+
### Slide Template
20+
21+
This is an example of a presentation slide created with the Chinese slide template.
22+
23+
[PDF Embed](https://github.com/jiahaoxiang2000/typesetting/releases/download/v0.3.4/slide-zh.pdf ":pdf")
24+
25+
## English Documents
26+
27+
### Report Template
28+
29+
This is an example of a report document created with the English report template.
30+
31+
[PDF Embed](https://github.com/jiahaoxiang2000/typesetting/releases/download/v0.3.4/report-en.pdf ":pdf")
32+
33+
---
34+
35+
> **Note:** You can also download all example PDFs directly from our [GitHub Releases page](https://github.com/jiahaoxiang2000/typesetting/releases).

docs/index.html

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@
77
<meta name="description" content="Documentation for the LaTeX Typesetting Project">
88
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0">
99
<link rel="stylesheet" href="//cdn.jsdelivr.net/npm/docsify@4/lib/themes/vue.css">
10+
<!-- PDF.js stylesheet -->
11+
<link rel="stylesheet" href="//cdn.jsdelivr.net/npm/pdfjs-dist@2.9.359/web/pdf_viewer.min.css">
1012
</head>
1113
<body>
1214
<div id="app"></div>
@@ -34,6 +36,14 @@
3436
buttonText: 'Copy to clipboard',
3537
errorText: 'Error',
3638
successText: 'Copied'
39+
},
40+
// PDF embed configuration
41+
pdf: {
42+
// PDF.js options
43+
pdfOptions: {
44+
height: "800px",
45+
width: "100%"
46+
}
3747
}
3848
}
3949
</script>
@@ -46,5 +56,10 @@
4656
<script src="//cdn.jsdelivr.net/npm/prismjs/components/prism-bash.min.js"></script>
4757
<script src="//cdn.jsdelivr.net/npm/prismjs/components/prism-latex.min.js"></script>
4858
<script src="//cdn.jsdelivr.net/npm/prismjs/components/prism-tex.min.js"></script>
59+
60+
<!-- PDF.js requirements -->
61+
<script src="//cdn.jsdelivr.net/npm/pdfjs-dist@2.9.359/build/pdf.min.js"></script>
62+
<!-- PDF.js for Docsify plugin -->
63+
<script src="//cdn.jsdelivr.net/npm/docsify-pdf-embed-plugin/dist/docsify-pdf-embed.js"></script>
4964
</body>
5065
</html>

docs/sidebar.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,5 @@
22
- [Getting Started](getting-started.md)
33
- [Usage Guide](usage.md)
44
- [Templates](templates.md)
5+
- [Examples](examples.md)
56
- [Contributing](contributing.md)

readme.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,10 @@ This project provides tools and templates for high-quality document typesetting
4343

4444
Check out our [online documentation](https://jiahaoxiang2000.github.io/typesetting/) for detailed usage instructions.
4545

46+
## Preview Examples
47+
48+
You can view example PDF files without having to compile them yourself by visiting our [GitHub Releases page](https://github.com/jiahaoxiang2000/typesetting/releases), where you'll find pre-compiled PDF examples of various document types.
49+
4650
## Directory Structure
4751

4852
```

0 commit comments

Comments
 (0)