| 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![]() | ||
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_analysis/2 | Result is the analysis result for Pack. | ![]() |
| pack_members/2 | Members is a list of file(File,Size) that represent the files in Pack. | ![]() |
| pack_open_entry/3 | Open an entry in the Pack for reading. | ![]() |
| xref_pack/1 | Run the cross-referencer on all Prolog files inside pack. | ![]() |
| xref_pack_file/2 | Run the cross-referencer on File inside Pack. | ![]() |
| xref_open_source/2 | If Id refers to a known Prolog pack, open the pack entry. | ![]() |
| xref_source_file/3 | ![]() | |
| xref_source_identifier/2 | ![]() | |
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![]() | ||
| 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![]() | ||
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![]() | ||
| extract_title/3 | Extract the title from a wiki page. | ![]() |
| file/4 | Trap translation of \file(+Path, Options). | ![]() |
| include/5 | ![]() | |
| index_wiki_pages/0 | Create a (title) index of the available wiki pages. | ![]() |
| safe_file_name/1 | True when Name is a file without references to parent directories. | ![]() |
| title_text/2 | Turn the title, represented as an argument to html//1 into a plain string. | ![]() |
| update_wiki_page_title/1 | Update the cached information about a wiki file. | ![]() |
| wiki_file_to_dom/2 | DOM is the HTML dom representation for the content of File. | ![]() |
| wiki_page_title/2 | True when Title is the title of the wiki page at Location. | ![]() |
wiki_edit.pl -- Edit PlDoc wiki pages![]() | ||