Skip to content

Commit d49cdad

Browse files
committed
add README
1 parent 1f7d110 commit d49cdad

File tree

4 files changed

+251
-0
lines changed

4 files changed

+251
-0
lines changed

README.md

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
# hexo.swift
2+
3+
## 来源
4+
5+
作为一个博客框架的折腾狂,从 jekyll 到 hexo 的静态博客框架方案,再到 wordpress 和 Ghost 这样的动态框架,都已经尝试过,并且沉迷于各种主题的使用。
6+
7+
后来,成为一个 Swift lover,我开始用 Vapor 构建自己的动态博客框架,用上软件工程课程和数据库课程中熟练掌握的 CRUD 构建了简单的动态博客框架,实现了文章的发布,查看功能,毕竟后端开发能力比较差,不太想折腾下去了。
8+
9+
看见 John Sundell 大佬开源了他的静态博客框架 Publish,于是打算自己做一个属于自己的 Only Swift 的静态博客框架,暂时取名为 hexo.swift,意味模仿 hexo 但又是 Only Swift 的。
10+
11+
## 简介
12+
13+
这是一个使用 Swift 编写的静态博客,当前的版本仅自用,仅供学习参考,不能用于生产。
14+
15+
## 使用
16+
17+
如果你使用 MacOS,可通过 hexo.swift 可执行文件进行以下操作
18+
19+
- new
20+
- new post <post name> 新建一篇文章
21+
- new page <page name> 新建一个页面
22+
- build
23+
将 Posts 和 Pages 中所有 md 文件转换成 html 文件
24+
- run
25+
将 Output 中生成好的 html 文件,通过 python http.server 构建网站
26+
27+
如果你使用 ubuntu,目前可执行文件尚不能在 ubuntu 上使用,若想在服务器构建网站,你需要在 Mac 本地 build,在服务器通过 `python3 -m http.server 8080` 来进行构建。
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
{
2+
"object": {
3+
"pins": [
4+
{
5+
"package": "Files",
6+
"repositoryURL": "https://github.com/JohnSundell/Files",
7+
"state": {
8+
"branch": null,
9+
"revision": "22fe84797d499ffca911ccd896b34efaf06a50b9",
10+
"version": "4.1.1"
11+
}
12+
},
13+
{
14+
"package": "Ink",
15+
"repositoryURL": "https://github.com/johnsundell/ink.git",
16+
"state": {
17+
"branch": null,
18+
"revision": "878fd897945500be1885f2c88f81f8f909224796",
19+
"version": "0.4.0"
20+
}
21+
},
22+
{
23+
"package": "Plot",
24+
"repositoryURL": "https://github.com/johnsundell/plot.git",
25+
"state": {
26+
"branch": null,
27+
"revision": "e81e059e39603a6c01cd157bc8fb6f1ffbfa7cf5",
28+
"version": "0.7.0"
29+
}
30+
},
31+
{
32+
"package": "ShellOut",
33+
"repositoryURL": "https://github.com/JohnSundell/ShellOut.git",
34+
"state": {
35+
"branch": null,
36+
"revision": "e1577acf2b6e90086d01a6d5e2b8efdaae033568",
37+
"version": "2.3.0"
38+
}
39+
}
40+
]
41+
},
42+
"version": 1
43+
}
Lines changed: 84 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,84 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<Scheme
3+
LastUpgradeVersion = "1130"
4+
version = "1.3">
5+
<BuildAction
6+
parallelizeBuildables = "YES"
7+
buildImplicitDependencies = "YES">
8+
<BuildActionEntries>
9+
<BuildActionEntry
10+
buildForTesting = "YES"
11+
buildForRunning = "YES"
12+
buildForProfiling = "YES"
13+
buildForArchiving = "YES"
14+
buildForAnalyzing = "YES">
15+
<BuildableReference
16+
BuildableIdentifier = "primary"
17+
BlueprintIdentifier = "D7F9F3B324141734000F11A6"
18+
BuildableName = "hexo.swift"
19+
BlueprintName = "hexo.swift"
20+
ReferencedContainer = "container:hexo.swift.xcodeproj">
21+
</BuildableReference>
22+
</BuildActionEntry>
23+
</BuildActionEntries>
24+
</BuildAction>
25+
<TestAction
26+
buildConfiguration = "Debug"
27+
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
28+
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
29+
shouldUseLaunchSchemeArgsEnv = "YES">
30+
<Testables>
31+
</Testables>
32+
</TestAction>
33+
<LaunchAction
34+
buildConfiguration = "Debug"
35+
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
36+
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
37+
launchStyle = "0"
38+
useCustomWorkingDirectory = "NO"
39+
ignoresPersistentStateOnLaunch = "NO"
40+
debugDocumentVersioning = "YES"
41+
debugServiceExtension = "internal"
42+
allowLocationSimulation = "YES">
43+
<BuildableProductRunnable
44+
runnableDebuggingMode = "0">
45+
<BuildableReference
46+
BuildableIdentifier = "primary"
47+
BlueprintIdentifier = "D7F9F3B324141734000F11A6"
48+
BuildableName = "hexo.swift"
49+
BlueprintName = "hexo.swift"
50+
ReferencedContainer = "container:hexo.swift.xcodeproj">
51+
</BuildableReference>
52+
</BuildableProductRunnable>
53+
<CommandLineArguments>
54+
<CommandLineArgument
55+
argument = "new post about"
56+
isEnabled = "YES">
57+
</CommandLineArgument>
58+
</CommandLineArguments>
59+
</LaunchAction>
60+
<ProfileAction
61+
buildConfiguration = "Release"
62+
shouldUseLaunchSchemeArgsEnv = "YES"
63+
savedToolIdentifier = ""
64+
useCustomWorkingDirectory = "NO"
65+
debugDocumentVersioning = "YES">
66+
<BuildableProductRunnable
67+
runnableDebuggingMode = "0">
68+
<BuildableReference
69+
BuildableIdentifier = "primary"
70+
BlueprintIdentifier = "D7F9F3B324141734000F11A6"
71+
BuildableName = "hexo.swift"
72+
BlueprintName = "hexo.swift"
73+
ReferencedContainer = "container:hexo.swift.xcodeproj">
74+
</BuildableReference>
75+
</BuildableProductRunnable>
76+
</ProfileAction>
77+
<AnalyzeAction
78+
buildConfiguration = "Debug">
79+
</AnalyzeAction>
80+
<ArchiveAction
81+
buildConfiguration = "Release"
82+
revealArchiveInOrganizer = "YES">
83+
</ArchiveAction>
84+
</Scheme>
Lines changed: 97 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,97 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<Bucket
3+
uuid = "6563D3A0-15BE-4A02-B08D-BE27BD4A3C5A"
4+
type = "1"
5+
version = "2.0">
6+
<Breakpoints>
7+
<BreakpointProxy
8+
BreakpointExtensionID = "Xcode.Breakpoint.SwiftErrorBreakpoint">
9+
<BreakpointContent
10+
uuid = "8FA01B48-C131-4933-9DA8-27D56DC9D601"
11+
shouldBeEnabled = "No"
12+
ignoreCount = "0"
13+
continueAfterRunningActions = "No">
14+
</BreakpointContent>
15+
</BreakpointProxy>
16+
<BreakpointProxy
17+
BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
18+
<BreakpointContent
19+
uuid = "E6D28F93-B68A-47B3-8031-A5205B00DE65"
20+
shouldBeEnabled = "Yes"
21+
ignoreCount = "0"
22+
continueAfterRunningActions = "No"
23+
filePath = "HexoCLI/HexoCLI.swift"
24+
startingColumnNumber = "9223372036854775807"
25+
endingColumnNumber = "9223372036854775807"
26+
startingLineNumber = "19"
27+
endingLineNumber = "19"
28+
landmarkName = "HexoCLI"
29+
landmarkType = "14">
30+
</BreakpointContent>
31+
</BreakpointProxy>
32+
<BreakpointProxy
33+
BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
34+
<BreakpointContent
35+
uuid = "B0A5624F-1ED5-4DA6-A821-531D98A6CDE2"
36+
shouldBeEnabled = "Yes"
37+
ignoreCount = "0"
38+
continueAfterRunningActions = "No"
39+
filePath = "hexo.swift/WebsiteRunner.swift"
40+
startingColumnNumber = "9223372036854775807"
41+
endingColumnNumber = "9223372036854775807"
42+
startingLineNumber = "53"
43+
endingLineNumber = "53"
44+
landmarkName = "unknown"
45+
landmarkType = "0">
46+
<Locations>
47+
<Location
48+
uuid = "B0A5624F-1ED5-4DA6-A821-531D98A6CDE2 - f0ed58b833d0c11e"
49+
shouldBeEnabled = "Yes"
50+
ignoreCount = "0"
51+
continueAfterRunningActions = "No"
52+
symbolName = "hexo_swift.WebsiteRunner.(getOutputFolder in _40522889F817DC17D824797588D9B73E)() throws -&gt; Files.Folder"
53+
moduleName = "hexo.swift"
54+
usesParentBreakpointCondition = "Yes"
55+
urlString = "file:///Users/ziyuanzhao/Documents/products/hexo.swift/hexo.swift/WebsiteRunner.swift"
56+
startingColumnNumber = "9223372036854775807"
57+
endingColumnNumber = "9223372036854775807"
58+
startingLineNumber = "53"
59+
endingLineNumber = "53"
60+
offsetFromSymbolStart = "220">
61+
</Location>
62+
<Location
63+
uuid = "B0A5624F-1ED5-4DA6-A821-531D98A6CDE2 - f0ed58b833d0c11e"
64+
shouldBeEnabled = "Yes"
65+
ignoreCount = "0"
66+
continueAfterRunningActions = "No"
67+
symbolName = "hexo_swift.WebsiteRunner.(getOutputFolder in _40522889F817DC17D824797588D9B73E)() throws -&gt; Files.Folder"
68+
moduleName = "hexo.swift"
69+
usesParentBreakpointCondition = "Yes"
70+
urlString = "file:///Users/ziyuanzhao/Documents/products/hexo.swift/hexo.swift/WebsiteRunner.swift"
71+
startingColumnNumber = "9223372036854775807"
72+
endingColumnNumber = "9223372036854775807"
73+
startingLineNumber = "53"
74+
endingLineNumber = "53"
75+
offsetFromSymbolStart = "303">
76+
</Location>
77+
</Locations>
78+
</BreakpointContent>
79+
</BreakpointProxy>
80+
<BreakpointProxy
81+
BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
82+
<BreakpointContent
83+
uuid = "7617FD5E-639A-4FAE-9B52-0205DEDB1E8A"
84+
shouldBeEnabled = "Yes"
85+
ignoreCount = "0"
86+
continueAfterRunningActions = "No"
87+
filePath = "hexo.swift/CLI/CLI.swift"
88+
startingColumnNumber = "9223372036854775807"
89+
endingColumnNumber = "9223372036854775807"
90+
startingLineNumber = "26"
91+
endingLineNumber = "26"
92+
landmarkName = "run(in:)"
93+
landmarkType = "7">
94+
</BreakpointContent>
95+
</BreakpointProxy>
96+
</Breakpoints>
97+
</Bucket>

0 commit comments

Comments
 (0)