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. The default port of the site is 3040, and therefore it may be accessed on http://localhost:3040/
% swipl -l load.pl ?- server.
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 | ||
markitup/3 | Insert a textarea with markItUp support. | |
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 | ||
pack_mirror.pl -- Mirror pack archives | ||
pack_mirror/3 | Try to mirror the latest version of Pack into File. | |
pack_mirror_directory/1 | True when Dir is the absolute file name for the mirrors. | |
pack_unmirror/1 | Delete all mirrors we have for Pack. | |
ssl_verify/5 | Currently we accept all certificates. | |
page.pl | ||
parms.pl | ||
plweb.pl -- Server for PlDoc wiki pages and SWI-Prolog website | ||
post.pl -- Posts | ||
proxy.pl | ||
rating.pl -- Provide a star-rating widget | ||
register.pl | ||
review.pl -- Handle rating and reviewing of packages | ||
pack_comment_count/2 | True when Count is the number of comments for Pack. | |
pack_rating_votes/3 | Rating is the current rating for Pack, based on Votes. | |
pack_reviews/3 | Show reviews for Pack. | |
profile_reviews/3 | Create a h2 section with all reviews by a given OpenID. | |
show_pack_rating/3 | Show overall rating. | |
show_pack_rating/7 | Show rating for Pack. | |
user_review_count/2 | True when Count is the number of reviews by UUID. | |
stats.pl -- Server statistics components | ||
tagit.pl | ||
ac_object/3 | Provide additional autocompletion matches on tags,. | |
tagit_footer/4 | Show tagit widget for adding and deleting tags. | |
user_tags/4 | Show all tags created by a given user. | |
test_recaptcha.pl | ||
tests.pl | ||
update.pl | ||
db_sync_thread/1 | Sync the persistency database every Time seconds. | |
watchdog.pl | ||
wiki.pl | ||
wiki_edit.pl -- Edit PlDoc wiki pages |