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![]() | ||
call_showing_messages/2 | Execute Goal, showing the feedback in the browser. | ![]() |
news.pl -- News on the SWI-Prolog Web site![]() | ||
random_news/2 | Emit a random news item for the Did You Know place of the page. | ![]() |
notify.pl -- Send notications by E-mail![]() | ||
msg_user/3 | Plain-text reference to a user with hyperlink. | ![]() |
notify/2 | Notify watching users by mail of the event on Object, described by Term. | ![]() |
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![]() | ||
page.pl![]() | ||
github_actions/3 | Emit the github star and sponsor buttons. | ![]() |
doc_page_header/4 | Called to render the PlDoc page header and link menu. | ![]() |
body/4 | Provide the page skin. | ![]() |
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![]() | ||
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![]() | ||
http_server_pool_table/2 | Display table with statistics on thread-pools. | ![]() |
http_server_statistics/2 | HTML component showing statistics on the HTTP server. | ![]() |
http_session_table/2 | HTML component that writes a table of currently logged on users. | ![]() |
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![]() | ||
watchdog.pl![]() | ||
wiki.pl![]() | ||
wiki_edit.pl -- Edit PlDoc wiki pages![]() |