Skip to content

Commit

Permalink
wcurl: initial page
Browse files Browse the repository at this point in the history
Closes #372
  • Loading branch information
bagder committed Aug 8, 2024
1 parent 8c1a659 commit 7cdebd9
Show file tree
Hide file tree
Showing 7 changed files with 131 additions and 0 deletions.
1 change: 1 addition & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ all: $(PAGES)
cd tiny && make
cd logo && make
cd trurl && make
cd wcurl && make

head.html: _head.html $(MAINPARTS)
$(ACTION)
Expand Down
4 changes: 4 additions & 0 deletions bootstrap.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@ if test ! -d trurl/trurl-www; then
git clone https://github.com/curl/trurl.git trurl/trurl-www
fi

if test ! -d wcurl/wcurl-repo; then
git clone https://github.com/curl/wcurl.git wcurl/wcurl-repo
fi

touch ca/cacert.pem
touch ca/pemlist.gen

Expand Down
32 changes: 32 additions & 0 deletions wcurl/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
ROOT=..

SRCROOT=$(ROOT)/cvssource
DOCROOT=$(SRCROOT)/docs
TESTROOT=$(SRCROOT)/tests
LIBROOT=$(SRCROOT)/lib
CURL=$(ROOT)

include $(ROOT)/mainparts.mk
include $(ROOT)/setup.mk

MAINPARTS += _menu.html
MKRELNOTES = ./mk-release-notes.pl
MAN2HTML = roffit --bare

PAGES = index.html \
manual.html

all: $(PAGES)
(cd wcurl-repo && git pull)

wcurl.gen: wcurl-repo/wcurl.1
$(MAN2HTML) < $< > wcurl.gen

manual.html: _manual.html $(MAINPARTS) wcurl.gen
$(ACTION)

index.html: _index.html $(MAINPARTS)
$(ACTION)

clean:
rm -f $(PAGES)
35 changes: 35 additions & 0 deletions wcurl/_index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
#include "_doctype.html"
<html>
<head> <title>wcurl</title>
#include "css.t"
</head>

#define CURL_URL /wcurl

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

WHERE1(wcurl)

<center><img src="wcurl-logo.png" alt="wcurl logo" style="width:70%; padding-top: 8px; padding-bottom: 30px;">
</center>

<div class="relatedbox">
<b>Related:</b>
<br><a href="https://github.com/curl/wcurl">GitHub repo</a>
<br><a href="manual.html">manpage</a>
</div>
<p>
wcurl is a command line tool which lets you download URLs without having to
remember any parameters.
<p>
Invoke wcurl with a list of URLs you want to download and wcurl will pick sane
defaults; using curl under the hood.

SUBTITLE(Pronunciation)
<p>
"double-u curl"

#include "_footer.html"
</body>
</html>
26 changes: 26 additions & 0 deletions wcurl/_manual.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
#include "_doctype.html"
<html>
<head> <title>wcurl - How To Use</title>
#include "css.t"
#include "manpage.t"
</head>

#define CURL_WCURL
#define CURL_URL wcurl/manual.html

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

WHERE2(wcurl, "/wcurl/", Manpage)

TITLE(wcurl manpage)
<div class="relatedbox">
<b>Related:</b>
<br><a href="https://github.com/curl/wcurl">GitHub repo</a>
<br><a href="/wcurl/">wcurl</a>
</div>
#include "wcurl.gen"
#include "_footer.html"

</body>
</html>
33 changes: 33 additions & 0 deletions wcurl/_menu.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
#ifndef __MENU
#define __MENU

#include "setup.t"

#ifndef NOBODY

<body>
#endif

#define SEP <br>

#define NOW(text) <b>text</b>
#define REF(link,text) <a href=link>text</a>

<div class="main">
<div class="menu">

<div class="dropdown">
<a class="dropbtn" href="/">curl.se</a>
</div>
<div class="dropdown">
<a class="dropbtn" href="/dev/">wcurl</a>
<div class="dropdown-content">
<a href="https://github.com/curl/wcurl">GitHub repo</a>
<a href="/wcurl/code-review.html">manpage</a>
</div>
</div>

</div>

START_OF_MAIN
#endif
Binary file added wcurl/wcurl-logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 7cdebd9

Please sign in to comment.