mirror of
https://github.com/curl/curl.git
synced 2026-08-06 05:46:13 +03:00
manpage: ensure a maximum width for the text version
... using the new script 'maxline' to which we specify the maximum number of columns we allow any single line to be, or it will cause an error. Starting out with a max width at 100 columns. Bonus: shorten the long line in the --ipfs-gateway section. Closes #14423
This commit is contained in:
parent
919394ee64
commit
badbd4eb46
4 changed files with 47 additions and 3 deletions
|
|
@ -37,6 +37,10 @@ GN_1 =
|
|||
GN_ = $(GN_0)
|
||||
|
||||
MANAGEN=$(top_srcdir)/scripts/managen
|
||||
MAXLINE=$(top_srcdir)/scripts/maxline
|
||||
|
||||
# Maximum number of columns accepted in the ASCII version of the manpage
|
||||
MAXCOLS=100
|
||||
INCDIR=$(top_srcdir)/include
|
||||
|
||||
if BUILD_DOCS
|
||||
|
|
@ -51,7 +55,7 @@ $(MANPAGE): $(DPAGES) $(SUPPORT) mainpage.idx Makefile.inc $(MANAGEN)
|
|||
$(GEN)(rm -f $(MANPAGE) && @PERL@ $(MANAGEN) -d $(srcdir) -I $(INCDIR) mainpage $(DPAGES) > manpage.tmp.$$$$ && mv manpage.tmp.$$$$ $(MANPAGE))
|
||||
|
||||
$(ASCIIPAGE): $(DPAGES) $(SUPPORT) mainpage.idx Makefile.inc $(MANAGEN)
|
||||
$(GEN)(rm -f $(ASCIIPAGE) && @PERL@ $(MANAGEN) -d $(srcdir) -I $(INCDIR) ascii $(DPAGES) > asciipage.tmp.$$$$ && mv asciipage.tmp.$$$$ $(ASCIIPAGE))
|
||||
$(GEN)(rm -f $(ASCIIPAGE) && @PERL@ $(MANAGEN) -d $(srcdir) -I $(INCDIR) ascii $(DPAGES) | @PERL@ $(MAXLINE) $(MAXCOLS) > asciipage.tmp.$$$$ && mv asciipage.tmp.$$$$ $(ASCIIPAGE))
|
||||
|
||||
listhelp:
|
||||
$(MANAGEN) -d $(srcdir) listhelp $(DPAGES) > $(top_builddir)/src/tool_listhelp.c
|
||||
|
|
|
|||
|
|
@ -24,7 +24,7 @@ if a `~/.ipfs/gateway` file holding the gateway URL exists.
|
|||
If you run a local IPFS node, this gateway is by default available under
|
||||
`http://localhost:8080`. A full example URL would look like:
|
||||
|
||||
curl --ipfs-gateway http://localhost:8080 ipfs://bafybeigagd5nmnn2iys2f3doro7ydrevyr2mzarwidgadawmamiteydbzi
|
||||
curl --ipfs-gateway http://localhost:8080 ipfs://bafybeigagd5nmnn2iys2f3
|
||||
|
||||
There are many public IPFS gateways. See for example:
|
||||
https://ipfs.github.io/public-gateway-checker/
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue