Skip to content

Build resume PDF :-( #26

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,7 @@ ronin

# Python
__pycache__

# Sphinx-intl
locale/
*.mo
15 changes: 14 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,12 @@
# from the environment for the first two.
SPHINXOPTS ?= -j auto
SPHINXBUILD ?= python3 -msphinx
SPHINXSERV ?= sphinx-autobuild
SPHINXINTL ?= sphinx-intl
SOURCEDIR = .
BUILDDIR = _build
LOCALEDIR = locale
LANG = en_US.UTF-8
SPHINXSERV ?= sphinx-autobuild
MAKE = make

default: fast
Expand Down Expand Up @@ -40,6 +42,17 @@ pull:
migrate-to-permnotes:
./_utils/migrate-to-permnotes

resume:
./_utils/build-singlepdf ./about/resume.rst

en:
$(MAKE) gettext
$(SPHINXINTL) update --pot-dir $(BUILDDIR)/gettext \
--locale-dir $(LOCALEDIR) \
--language $@ \
--jobs 1 # job=1 to prevent panic
$(MAKE) html SPHINXOPTS=-Dlanguage=$@

# Put it first so that "make" without argument is like "make help".
help:
@$(SPHINXBUILD) -M help "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
Expand Down
17 changes: 17 additions & 0 deletions _utils/build-singlepdf
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
#!/bin/bash

doc=$1
[ -f $doc ] || exit 1

root=$(git rev-parse --show-toplevel)
srcdir=$(mktemp -d)
builddir=$root/_build/singlepdf

mkdir -p $builddir
cp $root/$doc $srcdir/index.rst
mkdir -p $srcdir/locale/en/LC_MESSAGES
cp $root/locale/en/LC_MESSAGES/about/resume.mo $srcdir/locale/en/LC_MESSAGES/index.mo

sphinx-build -M latexpdf $srcdir $builddir -Dlanguage=en --conf-dir $root

echo $builddir/latex/sphinx.pdf
31 changes: 15 additions & 16 deletions about/resume.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,33 +2,32 @@
张盛宇
======

.. centered::
:fa:`envelope` :email:`[email protected]` | :fa:`phone` (+86)176******** | :fa:`rss` `silverrainz.me`__
.. centered:: [email protected] | (+86)1761089270 | `silverrainz.me`__

__ https://silverrainz.me

:fa:`briefcase` 从业经历
========================
从业经历
========

:字节跳动: 基础库研发工程师,2021 ~ 2024
:长亭科技: 系统研发工程师,2017 ~ 2020
:长亭科技: 实习研发工程师,2016
:Google Summer of Code: GNU Hurd developer,2016

:fa:`graduation-cap` 教育经历
=============================
教育经历
========

:造型实验室: 古典素描、当代艺术创作,2024 ~ 2025
:造型实验室: 古典素描,2020 ~ 2021
:华南农业大学: 软件工程,2013 ~ 2017

:fa:`cogs` 专业技能
===================
专业技能
========

基础技能
:编程语言: 熟练使用 C、Golang、Python,Rust,能阅读和调试 i386/x86_64 汇编
:开发工具: 熟悉 Shell、Git、(Neo)Vim、SysteD、Docker;能使用常见的 build System
:线上运维: 能熟练使用各大 Linux 发行版,并进行简单的维护和监控
:开发工具: 熟练使用 Shell、Git、(Neo)Vim、Makefile、SystemD、Docker
:线上运维: 熟练使用各大 Linux 发行版,能进行简单的维护和监控
:文书处理: 重视文档建设,能熟练阅读、编写英文技术文档,熟悉 Sphinx、Office 等文档工具
:社区建设: 熟悉开源社区工作流程,拥有较丰富的中小型项目立项、发布、推广、维护经验

Expand All @@ -38,8 +37,8 @@ __ https://silverrainz.me
:性能优化: 熟悉 Golang 程序性能的基准测试和优化手段
:Linux Desktop: 能熟练使用 GTK 框架开发原生 Linux 桌面应用程序

:fa:`code` 项目经历
===================
项目经历
========

Go 性能平台 - 字节跳动 / 协作开发 / 2022 ~ 2024
服务内部数万微服务的一站式性能优化平台,基于线上采样火焰图的火焰图衍生出各种功能。
Expand Down Expand Up @@ -85,8 +84,8 @@ github.com/SilverRainZ/OS67 - 开源项目 / 独立开发 / 2014.10 ~ 2015.10

支持虚拟内存管理、Minix 文件系统、基于 fork/exec 的多线程、用户级系统调用、支持 Shell 和简单的管道。

:fa:`users` 开源活动
====================
开源活动
========

Arch Linux
- 2016 年至今,为 Arch Linux CN Repository 维护软件包 100 余个,提交数量排名 #12
Expand All @@ -110,8 +109,8 @@ IRC
- 为中科大 Linux 用户协会(USTCLUG)设计社团 LOGO
- 维护 PNMixer 的中文翻译

:fa:`trademark` 专利
====================
专利
====

:CN109889530B: Web 应用防火墙系统及计算机存储介质
:CN111158683A: 一种 Web 应用防火墙自定义扩展功能的方法、装置、系统及电子设备
Expand Down
27 changes: 27 additions & 0 deletions conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -384,3 +384,30 @@

extensions.append('sphinx.ext.graphviz')
graphviz_output_format = 'svg'

latex_toplevel_sectioning = 'section'
latex_theme = 'howto'
latex_elements = {
'papersize': 'a4paper',

'preamble': r'''
\setcounter{secnumdepth}{0}
\date{}
''',

'maketitle': r'''
\title{
\textbf{Shengyu Zhang}
\vspace{-1em}
}
\author{\vspace{-2em}}
\date{\vspace{-2em}}
\maketitle
''',
'makeindex' : r'',
'printindex' : r'',
'tableofcontents': r''
}

locale_dirs = ['locale/'] # path is example but recommended.
gettext_compact = False
Loading