| Did you know ... | Search Documentation: |
| Title for pldoc(dir_index) |
This repository contains the software of http://www.swi-prolog.org. The (wiki) content of the website and required add-ons are stored in git submodules. These must be installed separately using the command below. To install the site from scratch locally, perform the following commands:
% git clone https://github.com/SWI-Prolog/plweb.git % cd plweb % git submodule update --init
<dl> <dt>annotations.db</dt> <dd>Comments on web pages</dd> <dt>tags.db</dt> <dd>Tags on web pages</dd> <dt>openid.db</dt> <dd>User administration</dd> <dt>packs.db</dt> <dd>Known packages</dd> <dt>post.db</dt> <dd>News posts</dd> <dt>reviews.db</dt> <dd>Pack reviews</dd> <dt>download</dt> <dd>Points to the download directory</dd> </dl>
Install the download descriptions by running the script install-custom
% mkdir log pack % chgrp www-data log pack % chmod g+ws log pack
After installation, the website may be started locally using the commands below. After that, you have access to the same content as available from https://www.swi-prolog.org, except for the download section of the website.
% swipl load.pl -p 8080 -i
A good way to run the website on a Linux server is by creating a Linux
container using lxc. After installing the server, you can enable it to
start at boot time by copying upstart/swi-prolog.conf to `/etc/init`
after editing it to suit your configuration requirements. By default,
the server runs as user www-data, group www-data as specified in the
above configuration file.
Make sure the following components are writeable to the server process. For files, this means mode 664, group www-data. For directories, this means mode 2775, group www-data.
% git checkout master % git pull % git checkout -b wiki % find . -type d | xargs chmod 2775 % find . -name '*.txt' | xargs chmod 664 % chgrp -W www-data .
?- set_setting(recaptcha:public_key, 'public key goes here'). ?- set_setting(recaptcha:private_key, 'private key goes here'). ?- save_settings.
annotation.pl -- Annotation![]() | ||
|---|---|---|
api.pl![]() | ||
autocomplete.pl -- SWI-Prolog website autocompletion support![]() | ||
blog.pl![]() | ||
changelog.pl![]() | ||
customise.pl![]() | ||
daemon.pl![]() | ||
did_you_know.pl -- Interesting snippets about SWI-Prolog![]() | ||
download.pl![]() | ||
examples.pl![]() | ||
fastly.pl -- Purge pages on our CDN![]() | ||
footer.pl -- Footer![]() | ||
forum.pl![]() | ||
generics.pl -- Generics![]() | ||
git_html.pl![]() | ||
gitweb.pl -- Provide gitweb support![]() | ||
holidays.pl![]() | ||
http_cgi.pl -- Run CGI scripts from the SWI-Prolog web-server![]() | ||
load.pl![]() | ||
make.pl![]() | ||
markdown.pl -- Parse markdown documents into a DOM![]() | ||
markitup.pl -- Wrapper for markItUp ajax markup editor![]() | ||
messages.pl -- Run goals that produce messages![]() | ||
news.pl -- News on the SWI-Prolog Web site![]() | ||
notify.pl -- Send notications by E-mail![]() | ||
object_support.pl -- Object support![]() | ||
openid.pl -- Handle users of the SWI-Prolog website![]() | ||
pack.pl![]() | ||
pack_analyzer.pl -- Analyse the content of a Prolog pack![]() | ||
pack_info.pl -- Visual (web) components that show info about packs![]() | ||
| clean_pack_info/1 | Remove the collected info for Pack. | ![]() |
| pack_file_details/3 | Reply with an web-page with details on File in Pack. | ![]() |
| pack_file_hierarchy/3 | Create a ul for all files that appear in the pack. | ![]() |
| pack_readme/3 | Insert readme information if provided. | ![]() |
| update_pack_metadata/0 | Destroy and recompute all pack meta-data. | ![]() |
| update_pack_metadata_in_background/0 | Destroy and recompute all pack meta-data. | ![]() |
pack_mirror.pl -- Mirror pack archives![]() | ||
page.pl![]() | ||
parms.pl![]() | ||
plweb.pl -- Server for PlDoc wiki pages and SWI-Prolog website![]() | ||
| doc_directory/1 | Enable editing of wiki documents from the www directory. | ![]() |
post.pl -- Posts![]() | ||
proxy.pl![]() | ||
rating.pl -- Provide a star-rating widget![]() | ||
register.pl![]() | ||
review.pl -- Handle rating and reviewing of packages![]() | ||
stats.pl -- Server statistics components![]() | ||
tagit.pl![]() | ||
test_recaptcha.pl![]() | ||
tests.pl![]() | ||
update.pl![]() | ||
watchdog.pl![]() | ||
well_known.pl![]() | ||
wiki.pl![]() | ||
wiki_edit.pl -- Edit PlDoc wiki pages![]() | ||