Skip to content

Commit

Permalink
docs: brign back the alt-svc and hsts docs pages
Browse files Browse the repository at this point in the history
... as they are mentioned in files curl generates.
  • Loading branch information
bagder committed Dec 9, 2024
1 parent 2f34b6c commit 31edc91
Show file tree
Hide file tree
Showing 3 changed files with 71 additions and 0 deletions.
13 changes: 13 additions & 0 deletions docs/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,7 @@ CVELIST = \

PAGES = \
$(CVELIST) \
alt-svc.html \
audits.html \
bugbounty.html \
bugs.html \
Expand All @@ -196,6 +197,7 @@ PAGES = \
governance.html \
help-us.html \
history.html \
hsts.html \
http-cookies.html \
http3.html \
httpscripting.html \
Expand Down Expand Up @@ -351,6 +353,17 @@ faq.html: _faq.shtml $(MAINPARTS) faq.gen
faq.gen: $(DOCROOT)/FAQ faqparse.pl
./faqparse.pl < $< > $@

alt-svc.html: _alt-svc.html $(MAINPARTS) alt-svc.gen
$(ACTION)
alt-svc.gen: $(DOCROOT)/ALTSVC.md
$(MARKDOWN) < $< >$@

hsts.html: _hsts.html $(MAINPARTS) hsts.gen
$(ACTION)

hsts.gen: $(DOCROOT)/HSTS.md
$(GITHUB) $< >$@

http-cookies.html: _http-cookies.html $(MAINPARTS) http-cookies.gen
$(ACTION)

Expand Down
29 changes: 29 additions & 0 deletions docs/_alt-svc.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
#include "_doctype.html"
<html>
<head> <title>curl - Alt-Svc cache</title>
#include "css.t"
</head>

#define CURL_DOCS
#define PROT_DOCS
#define DOCS_ALT_SVC
#define CURL_URL docs/alt-svc.html

#include "_menu.html"
#include "setup.t"

WHERE3(Docs, "/docs/", Protocols, "/docs/protdocs.html", Alt-Svc cache)

<div class="relatedbox">
<b>Related:</b>
<br><a href="manpage.html">curl manpage</a>
<br><a href="tutorial.html">Tutorial</a>
<br><a href="httpscripting.html">HTTP Scripting</a>
</div>

#include "alt-svc.gen"

#include "_footer.html"

</body>
</html>
29 changes: 29 additions & 0 deletions docs/_hsts.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
#include "_doctype.html"
<html>
<head> <title>curl - HTTP Strict-Transport-Security (HSTS)</title>
#include "css.t"
</head>

#define CURL_DOCS
#define PROT_DOCS
#define DOCS_HSTS
#define CURL_URL docs/hsts.html

#include "_menu.html"
#include "setup.t"

WHERE3(Docs, "/docs/", Protocols, "/docs/protdocs.html", HSTS)

<div class="relatedbox">
<b>Related:</b>
<br><a href="manpage.html">manpage</a>
<br><a href="httpscripting.html">HTTP Scripting</a>
<br><a href="tutorial.html">Tutorial</a>
</div>

#include "hsts.gen"

#include "_footer.html"

</body>
</html>

0 comments on commit 31edc91

Please sign in to comment.