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
Size: 1809
Language: Perl 6
GitHub Committers
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
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
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.
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.