Skip to content

Commit 7d581db

Browse files
committed
1 parent 32d8ac1 commit 7d581db

File tree

3 files changed

+8
-6
lines changed

3 files changed

+8
-6
lines changed

.travis.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ install:
88
script:
99
- npm run build
1010
- echo "icyfenix.cn" >> .vuepress/dist/CNAME
11+
- npm run export
1112
deploy:
1213
- provider: pages
1314
skip_cleanup: true

.vuepress/plugins/export/index.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,9 @@ module.exports = (opts = {}, ctx) => ({
4646
})
4747

4848
async function generatePDF(ctx, port, host) {
49-
let {pages, tempPath, siteConfig} = ctx
49+
let {pages, tempPath, vuepressDir, siteConfig} = ctx
5050
const tempDir = join(tempPath, 'pdf')
51-
51+
const pdfDir = vuepressDir + '/dist/pdf'
5252
const sidebar = ctx.siteConfig.themeConfig.sidebar
5353
const res = [pages[0]]
5454
flatten(sidebar, res)
@@ -129,7 +129,7 @@ async function generatePDF(ctx, port, host) {
129129

130130
const files = exportPages.map(({path}) => path)
131131
const outputFilename = siteConfig.title || 'site'
132-
const outputFile = `${outputFilename}.pdf`
132+
const outputFile = `${pdfDir}/${outputFilename}.pdf`
133133

134134
// 文件太多超过了命令行最大长度,改为10个一组多次合并
135135
for (let i = 0; i < files.length; i += 10) {

README.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ pageClass: index-page-class
2121
<github-button href="https://github.com/fenixsoft/awesome-fenix" data-icon="octicon-star" data-show-count="true" aria-label="Star fenixsoft/awesome-fenix on GitHub">Star</github-button>
2222
<github-button href="https://github.com/fenixsoft" data-show-count="true" aria-label="Follow @fenixsoft on GitHub">Follow</github-button>
2323
</span>
24-
<a href="https://icyfenix.cn" style="display:inline-block"><words type='updated' chapter='/'/></a>
24+
<a href="https://icyfenix.cn" style="display:inline-block"><words type='updated' /></a>
2525
<a href="https://travis-ci.com/fenixsoft/awesome-fenix" target="_blank" style="display:inline-block" class="not-print"><img src="https://api.travis-ci.com/fenixsoft/awesome-fenix.svg?branch=master" alt="Travis-CI"></a>
2626
<a href="https://www.apache.org/licenses/LICENSE-2.0" target="_blank" style="display:inline-block"><img src="https://icyfenix.cn/images/License-Apache.svg" alt="License"></a>
2727
<a href="https://creativecommons.org/licenses/by/4.0/" target="_blank" style="display:inline-block"><img src="https://icyfenix.cn/images/DocLicense-CC-red.svg" alt="Document License"></a>
@@ -30,10 +30,11 @@ pageClass: index-page-class
3030
<span class="only-for-printer" style="padding-top:300px">
3131
<br/>周志明
3232
<br/>icyfenix@gmail.com
33-
</br/>发行日期:{{this.$site.pages[0].siteLastUpdated}}</span>
33+
</br/>发行日期:<words type='updatedText' /></span>
3434
</p>
3535

3636

37+
3738
## 这是什么?
3839

3940
这是一部以介绍高级程序员、系统架构师为目标读者的技术手册,是一部以软件设计、架构工作中“要考虑哪些因素、需解决哪些问题、有哪些行业标准的解决方案”为主题的开源文档。文章《<a href="https://icyfenix.cn/introduction/about-the-fenix-project.html">什么是“The Fenix Project”</a>》详细阐述了此项目名字的来由、主旨与目标,文章《<a href="https://icyfenix.cn/exploration/guide/quick-start.html">如何开始</a>》简述了文档每章讨论的主要话题与详略分布,供阅前参考。
@@ -42,7 +43,7 @@ pageClass: index-page-class
4243

4344
- 笔者的工作从事大型企业级软件的架构研发,借此机会,系统性地整理自己的知识,查缺补漏,将它们都融入既有的知识框架之中。
4445
- 笔者正式出版过七本计算机技术书籍,遗憾是没有一本与自己本职工作直接相关。尽管能按照自己的兴趣去写作,还能获得不菲的经济报酬是一件很快乐的事情,但撰写一部工作中能直接用使到的、能随时更新,能与人交流的在线文档,也是一件颇为实用、颇具价值的事情。
45-
- 笔者认为技术人员成长有一“捷径”,技术不仅该去看、去读、去想、去用,更要去说、去写。将自己“认为掌握了的”知识叙述出来,能够说得有条理清晰,讲得理直气壮;能够让他人听得明白,释去心中疑惑;能够把自己的观点交予别人的审视,乃至质疑,在此过程之中,会挖掘出很多藏在“已知”之后的“未知”。未有知而不行,知而不行,只是未知。
46+
- 笔者认为技术人员成长有一“捷径”,技术不仅该去看、去读、去想、去用,更要去说、去写。将自己“认为掌握了的”知识叙述出来,能够说得有条理清晰,讲得理直气壮;能够让他人听得明白,释去心中疑惑;能够把自己的观点交予别人的审视,乃至质疑,在此过程之中,会挖掘出很多潜藏在“已知”背后的“未知”。未有知而不行,知而不行,只是未知。
4647

4748
除文档部分外,笔者同时还建立了若干配套的代码工程,这是针对不同架构、技术方案(如单体架构、微服务、服务网格、无服务架构、云原生,等等)的演示程序([PetStore-Like-Project](https://www.oracle.com/technetwork/cn/java/javaee/overview/index-136650.html))。它们既是文档中所述知识的实践示例,亦可作为实际项目新创建时的可参考引用的基础代码。
4849

0 commit comments

Comments
 (0)