Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
solo-1
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
solo-1
Commits
f9b4b22e
Unverified
Commit
f9b4b22e
authored
Feb 28, 2020
by
Liang Ding
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
🐛
修复 Windows 上生成静态站点的问题
parent
30b32ed1
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
pom.xml
pom.xml
+1
-1
src/main/java/org/b3log/solo/processor/console/StaticSiteConsole.java
...a/org/b3log/solo/processor/console/StaticSiteConsole.java
+2
-2
No files found.
pom.xml
View file @
f9b4b22e
...
@@ -73,7 +73,7 @@
...
@@ -73,7 +73,7 @@
</scm>
</scm>
<properties>
<properties>
<org.b3log.latke.version>
3.2.
8
</org.b3log.latke.version>
<org.b3log.latke.version>
3.2.
9
</org.b3log.latke.version>
<jsoup.version>
1.12.1
</jsoup.version>
<jsoup.version>
1.12.1
</jsoup.version>
<flexmark.version>
0.50.40
</flexmark.version>
<flexmark.version>
0.50.40
</flexmark.version>
...
...
src/main/java/org/b3log/solo/processor/console/StaticSiteConsole.java
View file @
f9b4b22e
...
@@ -49,7 +49,7 @@ import java.util.List;
...
@@ -49,7 +49,7 @@ import java.util.List;
* Static site console request processing. HTML 静态站点生成 https://github.com/88250/solo/issues/19
* Static site console request processing. HTML 静态站点生成 https://github.com/88250/solo/issues/19
*
*
* @author <a href="http://88250.b3log.org">Liang Ding</a>
* @author <a href="http://88250.b3log.org">Liang Ding</a>
* @version 2.0.1.
0, Feb 27
, 2020
* @version 2.0.1.
1, Feb 28
, 2020
* @since 3.9.0
* @since 3.9.0
*/
*/
@Singleton
@Singleton
...
@@ -154,7 +154,7 @@ public class StaticSiteConsole {
...
@@ -154,7 +154,7 @@ public class StaticSiteConsole {
if
(!
Latkes
.
isInJar
())
{
if
(!
Latkes
.
isInJar
())
{
rootPath
=
StaticSiteConsole
.
class
.
getResource
(
"/repository.json"
).
getPath
();
rootPath
=
StaticSiteConsole
.
class
.
getResource
(
"/repository.json"
).
getPath
();
rootPath
=
StringUtils
.
substringBeforeLast
(
rootPath
,
"/repository.json"
);
rootPath
=
StringUtils
.
substringBeforeLast
(
rootPath
,
"/repository.json"
);
staticSitePath
=
StaticSiteConsole
.
class
.
getResource
(
"/"
).
getPath
()
+
"
static-site"
;
staticSitePath
=
rootPath
+
"/
static-site"
;
}
else
{
}
else
{
LOGGER
.
log
(
Level
.
INFO
,
"Do not support export static site when running in jar"
);
LOGGER
.
log
(
Level
.
INFO
,
"Do not support export static site when running in jar"
);
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment