Skip to content

Commit

Permalink
libcurl: add libcurl-env-dbg.html
Browse files Browse the repository at this point in the history
- Generate libcurl-env-dbg.html from libcurl-env-dbg.3 (added in 8.4.0).

I did not add a 'Environment vars (debug)' link to the 'Docs' dropdown
menu because I think it's too niche. There is a menu entry for
'Environment vars' that links to libcurl-env.html and that page links to
libcurl-env-dbg.html.

Closes #xxxx
  • Loading branch information
jay committed Nov 19, 2023
1 parent 5698ed9 commit 3f6f32b
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/scripts/cleanspell.pl
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
$_ =~ s/CURLSHE_[A-Z0-9_]*//g;
$_ =~ s/CURLSHOPT_[A-Z0-9_]*//g;
$_ =~ s/CURLSSH_[A-Z0-9_]*//g;
$_ =~ s/CURLSSLBACKEND_[A-Z0-9_]*//g;
$_ =~ s/CURLSSLBACKEND_[A-Z0-9_]*//g;
$_ =~ s/CURLU_[A-Z0-9_]*//g;
$_ =~ s/CURLUE_[A-Z0-9_]*//g;
$_ =~ s/CURLUPART_[A-Z0-9_]*//g;
Expand All @@ -62,7 +62,7 @@
$_ =~ s/curl_mime_(subparts|addpart|filedata|data_cb)//g;
$_ =~ s/curl_ws_(send|recv|meta)//g;
$_ =~ s/curl_url_(dup)//g;
$_ =~ s/libcurl-env//g;
$_ =~ s/libcurl-env(-dbg)?//g;
$_ =~ s/(^|\W)((tftp|https|http|ftp):\/\/[a-z0-9\-._~%:\/?\#\[\]\@!\$&'()*+,;=]+)//gi;
$_ =~ s/^- Reported-by:.*//;
$_ =~ s/^- Patched-by:.*//;
Expand Down
6 changes: 6 additions & 0 deletions libcurl/c/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,7 @@ PAGES = \
symbols-in-versions.html \
threadsafe.html \
libcurl-env.html \
libcurl-env-dbg.html \
$(MIME) \
$(URLAPI) \
$(EASY_OPTION) \
Expand Down Expand Up @@ -368,6 +369,11 @@ libcurl-env.html: _libcurl-env.html $(MAINPARTS) libcurl-env.gen
libcurl-env.gen: $(MANROOT)/libcurl-env.3 curlopt2href.pl
$(MAN2HTML) < $< >$@

libcurl-env-dbg.html: _libcurl-env-dbg.html $(MAINPARTS) libcurl-env-dbg.gen
$(ACTION)
libcurl-env-dbg.gen: $(MANROOT)/libcurl-env-dbg.3 curlopt2href.pl
$(MAN2HTML) < $< >$@

libcurl-share.html: _libcurl-share.html $(MAINPARTS) libcurl-share.gen
$(ACTION)
libcurl-share.gen: $(MANROOT)/libcurl-share.3 curlopt2href.pl
Expand Down
23 changes: 23 additions & 0 deletions libcurl/c/_libcurl-env-dbg.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
#include "_doctype.html"
<html>
<head> <title>libcurl - environment debug variables</title>
#include "css.t"
#include "manpage.t"
</head>

#define LIBCURL_DOCS
#define DOCS_ENV
#define CURL_URL libcurl/c/libcurl-env-dbg.html

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

WHERE3(libcurl, "/libcurl/", API, "/libcurl/c/", Environment debug variables)

TITLE(Environment variables libcurl DEBUGBUILD understands)

#include "libcurl-env-dbg.gen"
#include "_footer.html"

</body>
</html>

0 comments on commit 3f6f32b

Please sign in to comment.