Skip to content

Commit 8e8e8ef

Browse files
committed
Convert all news/*.html to .md
Partial fix of openssl#324 Reviewed-by: Paul Dale <[email protected]> (Merged from openssl#346)
1 parent a98b9fc commit 8e8e8ef

16 files changed

+106
-274
lines changed

.gitignore

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,15 +14,16 @@ docs/faq.inc
1414
docs/fips.inc
1515
docs/man*/
1616
inc/pandoc-template.html5
17-
news/changelog.html
1817
news/changelog.inc
1918
news/changelog.md
19+
news/changelog.txt
2020
news/cl*.txt
2121
news/newsflash.inc
22-
news/openssl-*-notes.html
22+
news/openssl-*-notes.md
2323
news/openssl-*-notes.inc
2424
news/vulnerabilities*.inc
25-
news/vulnerabilities*.html
25+
news/vulnerabilities*.md
26+
news/*.html
2627
newsflash.inc
2728
source/*.gz*
2829
source/*.patch

Makefile

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ FUTURESERIES=
6262
H_TOP = $(addsuffix .html,$(basename $(shell git ls-files -- *.md)))
6363
H_COMMUNITY = $(addsuffix .html,\
6464
$(basename $(shell git ls-files -- community/*.md)))
65+
H_NEWS = $(addsuffix .html,$(basename $(shell git ls-files -- news/*.md)))
6566
H_POLICIES = $(addsuffix .html,\
6667
$(basename $(shell git ls-files -- policies/general/*.md \
6768
policies/technical/*.md)))
@@ -74,6 +75,7 @@ SIMPLE = $(H_TOP) \
7475
news/changelog.html \
7576
$(foreach S,$(SERIES),news/openssl-$(S)-notes.inc) \
7677
$(foreach S,$(SERIES),news/openssl-$(S)-notes.html) \
78+
$(H_NEWS) \
7779
news/newsflash.inc \
7880
news/secadv \
7981
news/vulnerabilities.inc \
@@ -318,7 +320,7 @@ news/changelog.inc: news/changelog.txt bin/post-process-html5 Makefile
318320
@rm -f $@
319321
(echo 'Table of contents'; sed -e '1,/^OpenSSL Releases$$/d' < $<) \
320322
| pandoc -t html5 -f commonmark | ./bin/post-process-html5 >$@
321-
news/changelog.html: news/changelog.html.tt news/changelog.inc Makefile bin/from-tt
323+
news/changelog.md: news/changelog.md.tt news/changelog.inc Makefile bin/from-tt
322324
@rm -f $@
323325
./bin/from-tt 'releases=$(SERIES)' $<
324326
# Additionally, make news/changelog.html depend on clxy[z].txt, where xy[z]
@@ -362,7 +364,7 @@ $(eval $(call mknews_changelogtxt,cl$(subst .,,$(S)).txt,openssl-$(S)-stable/CHA
362364
#
363365
# $(1) = release version, $(2) = NEWS file, relative to CHECKOUTS
364366
define mknews_noteshtml
365-
news/openssl-$(1)-notes.html: news/openssl-notes.html.tt bin/from-tt Makefile
367+
news/openssl-$(1)-notes.md: news/openssl-notes.md.tt bin/from-tt Makefile
366368
@rm -f $$@
367369
./bin/from-tt -d news -i $$< -o $$@ release='$(1)'
368370
news/openssl-$(1)-notes.inc: $(CHECKOUTS)/$(2) bin/mk-notes Makefile
@@ -403,7 +405,7 @@ define mknews_vulnerability
403405
news/vulnerabilities$(1).inc: bin/mk-cvepage news/vulnerabilities.xml Makefile
404406
@rm -f $$@
405407
./bin/mk-cvepage -i news/vulnerabilities.xml $(2) > $$@
406-
news/vulnerabilities$(1).html: news/vulnerabilities.html.tt bin/from-tt Makefile
408+
news/vulnerabilities$(1).md: news/vulnerabilities.md.tt bin/from-tt Makefile
407409
@rm -f $$@
408410
./bin/from-tt -d news vulnerabilitiesinc='vulnerabilities$(1).inc' < $$< > $$@
409411
endef
@@ -496,5 +498,6 @@ endef
496498
$(foreach H, \
497499
$(H_TOP) \
498500
$(H_COMMUNITY) \
501+
$(H_NEWS) \
499502
$(H_POLICIES) \
500503
,$(eval $(call makehtmldepend,$(H))))

news/changelog.html.tt

Lines changed: 0 additions & 55 deletions
This file was deleted.

news/changelog.md.tt

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
---
2+
breadcrumb: Changelog
3+
---
4+
# Changelog
5+
6+
When a release is created, that branch is forked off, and its changelog
7+
is also forked. For example, none of the changes after 0.9.8n appear in
8+
the other logs, because 1.0.0 was created after that release and before
9+
0.9.8o. Any changes that are merged across branches, however, should
10+
have an entry in each branch's changelog.
11+
12+
This is the changelog for the master branch, the one that is currently
13+
in active development. The plain-text / markdown version of this
14+
document is available here: [changelog.txt](changelog.txt)
15+
16+
For other branches, the changelogs are distributed with the source, but
17+
are also available here:
18+
19+
[% FOREACH release IN releases.split('\s+').reverse -%]
20+
- [[% release %]](cl[% release.replace('\.', '') %].txt)
21+
[% END -%]

news/dirdata.yaml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
---
2+
breadcrumbs:
3+
- |
4+
[Home](/) : [News](.)
5+
sidebar:
6+
- |
7+
# [News](.)
8+
9+
- [Newslog](newslog.html)
10+
- [Vulnerabilities](vulnerabilities.html)
11+
- [Changelog](changelog.html)
12+
---

news/index.html

Lines changed: 0 additions & 47 deletions
This file was deleted.

news/index.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
---
2+
breadcrumb: News
3+
---
4+
# News
5+
6+
To get the latest source, see the [Downloads](/source) section. This also
7+
lists the latest release of each version. For an exhaustive list of all
8+
releases (and some other announcements), see the [Newslog](newslog.html)
9+
page.
10+
11+
If you think you have found a security bug, or want to look at all the
12+
vulnerabilities we have published and fixed, visit the
13+
[Vulnerabilities](vulnerabilities.html) page.
14+
15+
We have an online copy of our [Changelog](changelog.html). It is also
16+
part of the distribution.

news/newslog.html

Lines changed: 0 additions & 33 deletions
This file was deleted.

news/newslog.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
---
2+
breadcrumb: Newslog
3+
---
4+
# Newslog
5+
6+
Here is a terse log of all OpenSSL announcements. They are almost
7+
release notices.
8+
9+
<p>
10+
<table class="newsflash" width="90%">
11+
<!--#include virtual="newsflash.inc"-->
12+
</table>
13+
</p>

news/openssl-notes.html.tt

Lines changed: 0 additions & 41 deletions
This file was deleted.

0 commit comments

Comments
 (0)