duckduckgo/duckduckgo-publisher

Name: duckduckgo-publisher

Owner: DuckDuckGo

Description: Generation of the static files of DuckDuckGo and its microsites.

Created: 2012-08-13 00:45:24.0

Updated: 2018-01-18 14:11:41.0

Pushed: 2018-01-19 09:44:28.0

Homepage:

Size: 1809

Language: Perl 6

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

DuckDuckGo Publisher Build Status

Installation

You require the following libraries of https://duckpan.org/

You can install App::DuckPAN of CPAN for this and then do the following command:

pan \
DDG \
DDGC::Locale::DuckduckgoDuckduckgo \
DDGC::Locale::DuckduckgoDontbubbleus \
DDGC::Locale::DuckduckgoDonttrackus

Proxying Requests to Dev Server

My default, asset URLs are relative (e.g. /style.css). To proxy these request to a development server, you can specify the domain for individual sites:

pan publisher --duckduckgo=http://moollaza.duckduckgo.com

Now all relative URLs will be directed to the specified server. In this case /style.css will be requested as http://moollaza.duckduckgo.com/style.css.

This allows you to develop locally and load assets from another server.

Publishing

Inside the repository you can do this to get a live simulation:

pan publisher

If you want to generate the static files you can do the following from the repository:

 -Ilib bin/ddg_publisher test_publish

The directory test_publish will be generated and filled up with the results.


This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.