GithubHelp home page GithubHelp logo

tunetheweb / curl-www Goto Github PK

View Code? Open in Web Editor NEW

This project forked from curl/curl-www

0.0 0.0 0.0 64.15 MB

The curl.se website

Home Page: https://curl.se/

License: MIT License

Shell 0.33% JavaScript 0.54% Perl 11.71% C 0.23% CSS 0.56% Makefile 2.02% HTML 84.13% Raku 0.49%

curl-www's Introduction

curl-www

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

Prerequisites

The web site 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 man pages 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've 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 web site locally by invoking make in the source root tree.

Note that this doesn't make you a complete web site 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

curl-www's People

Contributors

bagder avatar dfandrich avatar vszakats avatar yangtse avatar captain-caveman2k avatar danielgustafsson avatar jay avatar jpbarrette avatar emilengler avatar renodr avatar xquery avatar p avatar mback2k avatar kdudka avatar andy5995 avatar lekensteyn avatar rtldg avatar michael-o avatar jhauga avatar gknauf avatar gevaerts avatar dionrhys avatar alikhodkar avatar lfrancke avatar bynt avatar mkauf avatar sdakfjh avatar reedcopsey avatar samuelmarks avatar sylvestre avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.