Skip to content

Commit 507e2f7

Browse files
authored
Enhance PDF export and AI resource features (#321)
* Fix LaTeX template emoji.sty configuration and add LuaLaTeX guard * docs: Add emoji PDF output section and update to v1.4.0 - Added comprehensive 'Emoji in PDF Output' section explaining LuaLaTeX requirements - Documented filter installation and font configuration hints - Added WeasyPrint one-liner for native emoji support - Updated version to v1.4.0 with changelog for emoji improvements * Remove obsolete test files and update Lua dependency paths - Deleted unused test files for emoji support and line numbers. - Removed sample book index and chapter files to streamline testing. - Updated paths in the Lua dependency validator to reflect new directory structure. - Enhanced CSS for better emoji support across platforms. * fix: 删除不必要的 SVG 文件引用并修正代码块格式 * feat: 更新 emoji 过滤器并优化 LaTeX 模板以支持更好的 CJK 和 emoji 渲染 * feat: 添加 PDF 导出测试脚本和中文字符缺失检测功能,增强对 emoji 和符号的支持 * Add support for multilingual code examples and enhance emoji diagnostics - Created a new markdown document for testing SourceHanMono font with multilingual code examples in Python, Bash, JavaScript, and Go. - Added a terminal environment diagnostic script to check for necessary tools and fonts for PDF export. - Implemented a Python script to diagnose emoji support in the system, checking for available emoji fonts and LaTeX engines. - Introduced a JSON metadata file for image caching and added a corresponding image file. - Updated the PDF export script to include new Lua filters for symbol fallback and lstinline fixes. - Enhanced the emoji-passthrough filter to handle variation selectors for composite emojis. - Added a new Lua filter for symbol fallback to replace missing special symbols with LaTeX commands. - Removed the obsolete table-lines filter and updated the table filter for better column alignment. - Modified the LaTeX template to improve code block styling and font handling for CJK support. - Deleted the old emoji test markdown file as it is no longer needed. * feat(ai): Add AI resources section with filtering and sorting functionality - Imported AI layout styles in style.scss. - Created new AI resources index page in English and Chinese. - Updated base layout to include AI type in header. - Developed AI resources list layout with sorting and filtering options. - Implemented single resource layout for detailed view of AI resources. - Added partials for AI resource cards, filters, and sorting buttons. - Included JavaScript for AI filtering functionality in the JS bundle. * fix: 修正博客内容中的链接和支付方式描述,增强可读性 * fix: 调整 AI 和 OSS 页面描述文本的样式,去除多余的文本修饰,增强可读性 * feat: 添加多个 AI 相关文档,包括 ChatGPT、Jupyter Notebook、PyTorch 深度学习教程、Stable Diffusion 和 TensorFlow,丰富内容和功能 * Add Lua filters for enhanced PDF export functionality - Implement fix-lstinline.lua to address passthrough lstinline issues in LaTeX output. - Create minted-filter.lua to convert fenced code blocks to minted environments for better syntax highlighting. - Add number-lines.lua to enable line numbering for code blocks in PDF output. - Introduce symbol-fallback-filter.lua to replace missing special symbols with LaTeX commands. - Develop table-filter.lua for generating tables with custom styling and borders in LaTeX. - Create table-wrap.lua to convert pipe tables to longtable format for improved wrapping. - Remove NotoColorEmoji font and associated README as it is no longer required. - Delete unused WeasyPrint HTML template and CSS file to streamline the project. - Update template.tex to reflect changes in table and code styling. * feat: 优化代码块样式和行号配置,增强可读性和一致性 * feat: 添加代码块和引用块样式优化,提升 PDF 导出视觉效果 * feat: 增强 PDF 导出功能,优化多语言和 emoji 支持 * feat: 更新使用心得,分享系统迁移、散热优化和桌面布局经验 * fix(pdf-exporter): resolve code block page break overlap issue Add breakable=true to mdframed styles to allow proper page breaks for long code blocks Move ctexset command after ctex package load Update template.tex with improved frame handling and spacing Add documentation in PAGE_BREAK_FIX.md explaining the solution * Fix template compilation by removing problematic catcode assignments - Removed catcode modifications from lstinline redefinition that were causing Pandoc template parser errors - Simplified lstinline to use seqsplit for line breaking without catcode changes - Template now compiles successfully with LuaLaTeX - Added comprehensive test file to verify inline code wrapping in tables * Implement aggressive inline code wrapping for table cells using parbox + seqsplit - Enhanced both texttt and lstinline commands to use parbox with calculated width - Added tolerance, emergencystretch, and hbadness settings for better line breaking - Uses dimexpr to calculate appropriate width accounting for padding - seqsplit handles breaking at any character when needed - Comprehensive test files added to verify wrapping in various scenarios - Should resolve inline code overflow issues in table cells * 完全修复内联代码在表格中的换行问题 问题根因: - fix-lstinline.lua filter 会拦截所有 Code 元素,覆盖模板中的定义 - 之前的 texttt 定义使用 parbox 导致内联代码显示为独立行 解决方案: 1. 简化 texttt 为真正内联的版本(无 parbox) 2. 在 table-wrap.lua 中特殊处理表格中的 Code 元素 3. 对表格中的内联代码使用 flexcode 命令(支持换行) 4. 修复 fix-lstinline.lua 中的 LaTeX 特殊字符转义 效果: - ✅ 正常文本中的内联代码保持内联显示 - ✅ 表格中的内联代码能够正确换行 - ✅ 保持代码背景色和字体样式 - ✅ 支持中英文混合和特殊字符 测试文件:test_inline_debug_table_fixed.pdf, test_specific_wrapping_final.pdf * feat: 添加AI资源搜索功能及相关样式和国际化支持 * fix: 修复书籍布局中的容器类名,确保正确应用样式 * fix: 更新关于本教程的说明,简化内容并明确开源信息 * Add new AI resources and enhance existing templates - Created new entries for "文心一言" and "元宝" in the AI resources with detailed descriptions, core technologies, and application scenarios. - Introduced "Zenable" as a code quality and compliance platform, outlining its core functionalities and service features. - Added English and Chinese mappings for AI resource types and tags in YAML files. - Updated localization files to include new translations for various UI elements related to AI resources. - Refactored HTML templates to utilize shared type and tag mappings, improving maintainability and consistency across AI resource displays. - Enhanced PDF export template for better readability of code snippets. * Refactor AI platform documentation for clarity and conciseness; update deployment options, core capabilities, and security features. Remove outdated PDF test files from the PDF book exporter tool. * fix: 更新AI菜单项,调整权重并恢复为主菜单项 * feat: 更新卡片图像处理逻辑,添加分类图标支持,优化AI类型标签映射 * feat: 更新卡片占位符样式,添加光泽效果和暗色模式适配 ref #290
1 parent 9f2bb8a commit 507e2f7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

_index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ repository:
3131
---
3232

3333
{{<callout note 关于本教程>}}
34-
本教程迁移自[Kubernetes 中文指南——云原生应用架构实战手册》](https://github.com/rootsongjc/kubernetes-handbook)原手册使用 Gitbook 发布,内容涵盖容器、Kubernetes、服务网格、Serverless 等云原生的多个领域。由于内容过于宽泛,且 Gitbook 项目已停止维护,现将其中的 Kubernetes 教程部分独立成书,并使用 Hugo 重新构建和持续更新。本书采用[署名 - 非商业性使用 - 相同方式共享 4.0 (CC BY-NC-SA 4.0)](https://creativecommons.org/licenses/by-nc-sa/4.0/deed.zh) 协议共享。
34+
Kubernetes 手册/教程开源在 [GitHub - rootsongjc/kubernetes-handbook](https://github.com/rootsongjc/kubernetes-handbook)使用 Hugo 构建,采用[署名 - 非商业性使用 - 相同方式共享 4.0 (CC BY-NC-SA 4.0)](https://creativecommons.org/licenses/by-nc-sa/4.0/deed.zh) 协议共享。
3535
{{</callout>}}
3636

3737
## 什么是云原生

0 commit comments

Comments
 (0)