Skip to content

Commit

Permalink
add releases
Browse files Browse the repository at this point in the history
  • Loading branch information
zhimin-z committed Oct 27, 2024
1 parent de036d0 commit fec6d05
Show file tree
Hide file tree
Showing 7 changed files with 9,900 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@

*.bkp
*.venv
.DS_Store
2 changes: 1 addition & 1 deletion docs/_sidebar.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@
- 第6章 [一致性](chapter6.md)
- 第7章 [收敛率](chapter7.md)
- 第8章 [遗憾界](chapter8.md)
- [参考文献](references.md)
- [参考文献](reference.md)
File renamed without changes.
4,959 changes: 4,959 additions & 0 deletions releases/preview.html

Large diffs are not rendered by default.

4,871 changes: 4,871 additions & 0 deletions releases/preview.md

Large diffs are not rendered by default.

Binary file added releases/preview.pdf
Binary file not shown.
68 changes: 68 additions & 0 deletions releases/release.ipynb
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
{
"cells": [
{
"cell_type": "code",
"execution_count": 9,
"metadata": {},
"outputs": [],
"source": [
"import os\n",
"\n",
"# Define the directory where the Markdown files are located\n",
"DIR = \"../docs\" # Replace with the actual directory path\n",
"\n",
"# List of Markdown files to merge, in the desired order\n",
"FILES = [\n",
" \"catalog.md\",\n",
" \"notation.md\",\n",
" \"chapter1.md\",\n",
" \"chapter2.md\",\n",
" \"chapter3.md\",\n",
" \"chapter4.md\",\n",
" \"chapter5.md\",\n",
" \"chapter6.md\",\n",
" \"chapter7.md\",\n",
" \"chapter8.md\",\n",
" \"appendix.md\",\n",
" \"reference.md\"\n",
"]\n",
"\n",
"# Merge Markdown file content\n",
"merged_content = \"\"\n",
"for file in FILES:\n",
" file_path = os.path.join(DIR, file)\n",
" if os.path.isfile(file_path):\n",
" with open(file_path, \"r\", encoding=\"utf-8\") as f:\n",
" merged_content += f.read() + \"\\n\\n\" # Add an empty line as a separator\n",
" else:\n",
" print(f\"Warning: File {file_path} does not exist and will be skipped.\")\n",
"\n",
"# Write the merged content to a temporary file\n",
"merged_file = f\"{os.getcwd()}/preview.md\"\n",
"with open(merged_file, \"w\", encoding=\"utf-8\") as f:\n",
" f.write(merged_content)"
]
}
],
"metadata": {
"kernelspec": {
"display_name": ".venv",
"language": "python",
"name": "python3"
},
"language_info": {
"codemirror_mode": {
"name": "ipython",
"version": 3
},
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.12.6"
}
},
"nbformat": 4,
"nbformat_minor": 2
}

0 comments on commit fec6d05

Please sign in to comment.