Skip to content

Unity-Curl/curl-www

This branch is 65 commits ahead of, 139 commits behind jay/curl-www:master.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

a8c1d86 · Jan 3, 2025
Jul 2, 2024
Jun 21, 2021
Jul 2, 2024
Jul 24, 2024
Jul 24, 2024
Jul 16, 2024
Jul 24, 2024
Jul 24, 2024
Jun 30, 2024
Jul 2, 2024
Jul 25, 2024
Jul 24, 2024
Jun 7, 2024
Jul 2, 2024
Jun 7, 2024
Jul 24, 2024
Oct 10, 2014
Jul 24, 2024
May 25, 2023
Jan 3, 2025
Jul 24, 2024
Jul 2, 2024
Jul 25, 2024
Jul 2, 2024
Jun 24, 2021
Jul 24, 2024
Jul 2, 2024
Jul 24, 2024
May 1, 2017
Mar 20, 2020
Mar 20, 2020
May 22, 2024
Mar 20, 2020
Apr 21, 2020
Jun 26, 2003
Jul 2, 2024
Jul 24, 2024
Jun 24, 2021
Jun 24, 2021
Sep 27, 2023
Jul 2, 2024
Nov 7, 2016
Jul 2, 2024
Jul 24, 2024
Jun 24, 2021
Jun 24, 2021
Jun 24, 2021
Jun 24, 2021
Jul 24, 2024
Jul 2, 2024
Jul 24, 2024
Jun 24, 2021
Oct 21, 2016
Jul 24, 2024
Jul 24, 2024
Jul 15, 2024
Sep 16, 2021
Jul 2, 2024
May 28, 2024
Sep 2, 2018
Jun 19, 2023
Jul 24, 2024
Jul 24, 2024
Jan 10, 2023
Jul 2, 2024
Jun 24, 2021
May 22, 2024
Apr 21, 2015
Sep 2, 2018
Aug 24, 2016
Oct 14, 2002
Jul 2, 2024
Jul 2, 2024
Jun 24, 2021
Jun 11, 2015
Nov 4, 2020
Jul 2, 2024
Jul 15, 2024
Jun 10, 2024
Jun 24, 2021
Jun 24, 2021
Sep 10, 2023
Sep 14, 2023
May 9, 2023
Jun 10, 2015
Mar 5, 2004
Apr 27, 2021
Jul 24, 2024
Jun 24, 2021
Aug 31, 2021
Jun 18, 2021
Sep 5, 2021

Repository files navigation

curl-www

This is (most of) the curl.se website contents. It mostly builds static HTML files that are preprocessed.

Prerequisites

The website is a on old custom made setup that mostly builds static HTML files from a set of source files using (GNU) make. The sources files are preprocessed with what is basically a souped-up C preprocessor called fcpp and a set of perl scripts. The manpages get converted to HTML with roffit.

Markdown is converted to HTML with pandoc.

Make sure the following tools are in your $PATH.

  • curl
  • GNU date
  • GNU enscript
  • fcpp
  • GNU make
  • pandoc
  • perl (with CPAN packages: CGI, HTML::Entities)
  • roffit
  • zip

Build

Once you have cloned the Git repo the first time, invoke sh bootstrap.sh once to get a symlink and some some initial local files setup, and then you can build the website locally by invoking make in the source root tree.

Note that this does not make you a complete website mirror, as some scripts and files are only available on the real actual site, but should give you enough to let you load most HTML pages locally.

Edit the web

Web editing guidelines

curl.local

To run a local copy of the curl website, have a local Apache or python to serve curl.local on 127.0.0.1. Add this line to /etc/hosts:

127.0.0.1 curl.local

Apache httpd config

A config file for apache2 to run a virtual server for curl.local on your local machine might look like this:

<VirtualHost *:80>
    ServerName curl.local
    ServerAdmin [my email address]
    DocumentRoot [full path to the curl-www build]

    ErrorLog ${APACHE_LOG_DIR}/curllocal-error.log
    CustomLog ${APACHE_LOG_DIR}/curllocal-access.log combined
</VirtualHost>

<Directory [full path to the curl-www build]>
   Options Indexes Includes FollowSymLinks ExecCGI
   AllowOverride All
   AddHandler cgi-script .cgi
   Require all granted
</Directory>

Python3

From the directory containing the website, run:

python3 -m http.server --cgi -b curl.local 8000

About

curl and libcurl web site contents

Resources

License

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • HTML 84.8%
  • Perl 9.6%
  • Makefile 2.2%
  • Raku 1.8%
  • CSS 0.6%
  • JavaScript 0.5%
  • Other 0.5%