Skip to content
This repository has been archived by the owner on Oct 6, 2018. It is now read-only.

Commit

Permalink
some changelog tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
MightyPork committed Feb 15, 2014
1 parent 402125a commit ece4093
Show file tree
Hide file tree
Showing 4 changed files with 42 additions and 6 deletions.
8 changes: 3 additions & 5 deletions src/data/changelog/385.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
- Now uses Nimbus theme
- Now uses **Nimbus theme**
- Smarter exporting to Minecraft
- Scrolling logs now show during initial extraction
- Extract dialog now offers only valid versions
- "Mods Found" dialog now has scrollbar
- "Mods Found" dialog now shows real mod names
- Minor enhancements & fixes
- "Mods Found" dialog now has **scrollbar**<br> and shows **real mod names**
- Fixed some resource leaks & other bugs
31 changes: 31 additions & 0 deletions src/data/html/html_changelog_top.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
<html>
<head>
<style>

p {
max-width: 300px;
}

ul {
margin: 12px;
}

strong {font-weight: bold;}
em {font-style: italic;}

.littleHeading {
color: #045A80;
font-weight: bold;
font-style: italic;
margin-top: 1em;
}

html, body {
font-weight: normal;
font-size: 12px;
font-family: sans-serif;
}

</style>
</head>
<body>
2 changes: 1 addition & 1 deletion src/net/mightypork/rpw/help/VersionUtils.java
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ private static String getChangelogForVersion(int version) {
public static String buildChangelogHtml() {

String md = buildChangelogMd();
return HtmlBuilder.markdownToHtmlBase(md);
return HtmlBuilder.markdownToHtmlChangelog(md);
}


Expand Down
7 changes: 7 additions & 0 deletions src/net/mightypork/rpw/utils/HtmlBuilder.java
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ public class HtmlBuilder {

static String htmlBaseTop;
static String htmlHelpTop;
static String htmlChangelogTop;
static String htmlBottom;


Expand All @@ -30,6 +31,7 @@ public static void init() {

htmlBaseTop = FileUtils.resourceToString(Paths.DATA_DIR_HTML + "html_base_top.html");
htmlHelpTop = FileUtils.resourceToString(Paths.DATA_DIR_HTML + "html_help_top.html");
htmlChangelogTop = FileUtils.resourceToString(Paths.DATA_DIR_HTML + "html_changelog_top.html");
htmlBottom = FileUtils.resourceToString(Paths.DATA_DIR_HTML + "html_bottom.html");
}

Expand All @@ -44,6 +46,11 @@ public static String markdownToHtmlHelp(String markdown) {

return markdownToHtml(markdown, htmlHelpTop);
}

public static String markdownToHtmlChangelog(String markdown) {

return markdownToHtml(markdown, htmlChangelogTop);
}


public static String markdownToHtml(String markdown, String top) {
Expand Down

0 comments on commit ece4093

Please sign in to comment.