diff --git a/.env-files/Dockerfile.github b/.env-files/Dockerfile.github new file mode 100644 index 0000000000000000000000000000000000000000..8ac84cedd4cba669ebfa652e75fc6b1123244044 --- /dev/null +++ b/.env-files/Dockerfile.github @@ -0,0 +1,11 @@ +FROM ruby:2.7.0 + +ENV LC_ALL=C.UTF-8=value + +ADD . /srv/jekyll + +WORKDIR /srv/jekyll + +RUN bundle install --gemfile=.env-files/Gemfile.github + +EXPOSE 4000 \ No newline at end of file diff --git a/.env-files/Dockerfile.gitlab b/.env-files/Dockerfile.gitlab new file mode 100644 index 0000000000000000000000000000000000000000..5e120bcce2fb6a3640f4d38f1392a725f04b2855 --- /dev/null +++ b/.env-files/Dockerfile.gitlab @@ -0,0 +1,11 @@ +FROM ruby:2.7.0 + +ENV LC_ALL=C.UTF-8=value + +ADD . /srv/jekyll + +WORKDIR /srv/jekyll + +RUN bundle install --gemfile=.env-files/Gemfile.gitlab + +EXPOSE 4000 \ No newline at end of file diff --git a/.env-files/Gemfile.github b/.env-files/Gemfile.github new file mode 100644 index 0000000000000000000000000000000000000000..8eceee69779bd84487bc8ae06c7bf5508f25b236 --- /dev/null +++ b/.env-files/Gemfile.github @@ -0,0 +1,3 @@ +source 'http://rubygems.org' +gem 'github-pages', group: :jekyll_plugins +gem "jekyll-gitlab-metadata" # for cross compatibility \ No newline at end of file diff --git a/.env-files/Gemfile.gitlab b/.env-files/Gemfile.gitlab new file mode 100644 index 0000000000000000000000000000000000000000..b61bb050080daaf379cfe7182084a98bcfb58973 --- /dev/null +++ b/.env-files/Gemfile.gitlab @@ -0,0 +1,18 @@ +source 'http://rubygems.org' +gem "jekyll-avatar" +gem "jekyll-coffeescript" +gem "jekyll-default-layout" +gem "jekyll-feed" +gem "jekyll-gist" +gem "jekyll-paginate" +gem "jekyll-mentions" +gem "jekyll-optional-front-matter" +gem "jekyll-readme-index" +gem "jekyll-redirect-from" +gem "jekyll-remote-theme" +gem "jekyll-relative-links" +gem "jekyll-seo-tag" +gem "jekyll-sitemap" +gem "jekyll-titles-from-headings" +gem "jemoji" +gem "jekyll-gitlab-metadata" \ No newline at end of file diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000000000000000000000000000000000000..8c5f13df91e2f6fcd310a983fa4a0313ce4f1457 --- /dev/null +++ b/.gitignore @@ -0,0 +1,3 @@ +_site +Gemfile.*.lock +.sass-cache \ No newline at end of file diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index e0c6b1068a31c449cdf44cd7ef154ddce928a59c..69511f287bb2da651406dc89bdd04226e6db5e88 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,28 +1,19 @@ -image: elecnix/ikiwiki +image: ruby:2.7.0 -before_script: - - git submodule init - - git submodule update +variables: + JEKYLL_ENV: production + LC_ALL: C.UTF-8 + BUNDLE_GEMFILE: .env-files/Gemfile.gitlab -test: - stage: test - script: - - ikiwiki --setup ikiwiki.setup --libdir themes/ikistrap/lib - only: - - branches - - tags - tags: - - pages +before_script: + - bundle install --gemfile=.env-files/Gemfile.gitlab pages: stage: deploy script: - - ikiwiki --setup ikiwiki.setup --libdir themes/ikistrap/lib + - bundle exec jekyll build -d public artifacts: paths: - public only: - - master - tags: - - pages - + - master \ No newline at end of file diff --git a/LICENSE b/LICENSE deleted file mode 100644 index d8027c3d51f59a1295fd29e6ab8728fcfb79f8cf..0000000000000000000000000000000000000000 --- a/LICENSE +++ /dev/null @@ -1,21 +0,0 @@ -The MIT License (MIT) - -Copyright (c) 2016 pages - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. diff --git a/README.md b/README.md index af49be378a7775736dab384b1addfce428d8695f..cffe4be4083222fcd2176426c045c7c4cbca4c1d 100644 --- a/README.md +++ b/README.md @@ -1,99 +1,19 @@ - +# git-wiki-skeleton ---- +NOTE: it's fully supported by github platform, you don't need to install anything locally -Example [ikiwiki] website using GitLab Pages. +This is a [skeleton](skeleton) repository that can be used as a template to bootstrap your wiki using "[remote_theme](https://github.com/benbalter/jekyll-remote-theme)" config -Learn more about GitLab Pages at https://pages.gitlab.io and the official -documentation https://docs.gitlab.com/ce/user/project/pages/. +For documentation, installation guide and demo of git-wiki-theme visit [THIS PAGE](http://drassil.github.io/git-wiki/) ---- +## The git-wiki project -<!-- START doctoc generated TOC please keep comment here to allow auto update --> -<!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE --> -**Table of Contents** *generated with [DocToc](https://github.com/thlorenz/doctoc)* +The git-wiki project is composed by 3 different repository: -- [GitLab CI](#gitlab-ci) -- [Building locally](#building-locally) -- [GitLab User or Group Pages](#gitlab-user-or-group-pages) -- [Did you fork this project?](#did-you-fork-this-project) -- [Troubleshooting](#troubleshooting) +- [git-wiki-theme](https://github.com/Drassil/git-wiki-theme): This is the repository of the theme that implements the wiki functionalities. You would have not fork it unless you need to send a Pull Request or create your wiki project from scratch. -<!-- END doctoc generated TOC please keep comment here to allow auto update --> +- [git-wiki-skeleton](https://github.com/Drassil/git-wiki-skeleton): This is the repo that you should fork or use as a template. It uses the [jekyll remote theme](https://github.com/benbalter/jekyll-remote-theme) functionality that allows you to create your own wiki based on git-wiki-theme. By using the remote functionality you can automatically keep your wiki always updated with latest features from the **git-wiki-theme**, but you can also fully customize it. -## GitLab CI +- [git-wiki](https://github.com/Drassil/git-wiki): This is the documentation repository and website of the **git-wiki-theme** project. You would have not fork it unless you want to contribute to the git-wiki project documentation. -This project's static Pages are built by [GitLab CI][ci], following the steps -defined in [`.gitlab-ci.yml`](.gitlab-ci.yml): - -```yaml -image: elecnix/ikiwiki - -before_script: - - apt-get install -y git - - git submodule init - - git submodule update - -test: - stage: test - script: - - ikiwiki --setup ikiwiki.setup --libdir themes/ikistrap/lib - only: - - branches - - tags - -pages: - stage: deploy - script: - - ikiwiki --setup ikiwiki.setup --libdir themes/ikistrap/lib - artifacts: - paths: - - public - only: - - master -``` - -We are using a theme based on Bootstrap 4 using submodules, and in order to -enable the theme plugin, we must pass the `libdir` parameter. - -## Building locally - -To work locally with this project, you'll have to follow the steps below: - -1. Fork, clone or download this project -1. [Install][] ikiwiki -1. Clone the submodules: `git submodule init && git submodule update` -1. Generate the website: `ikiwiki --setup .ikiwiki/ikiwiki.setup --libdir themes/ikistrap/lib` -1. Preview your project: open `public/index.html` in a browser - -Read more at ikiwiki's [documentation][]. - -## GitLab User or Group Pages - -To use this project as your user/group website, you will need one additional -step: just rename your project to `namespace.gitlab.io`, where `namespace` is -your `username` or `groupname`. This can be done by navigating to your -project's **Settings**. - -Read more about [user/group Pages][userpages] and [project Pages][projpages]. - -## Did you fork this project? - -If you forked this project for your own use, please go to your project's -**Settings** and remove the forking relationship, which won't be necessary -unless you want to contribute back to the upstream project. - -## Troubleshooting - -1. CSS is missing! That means two things: - - Either that you have wrongly set up the CSS URL in your templates, or - your static generator has a configuration option that needs to be explicitly - set in order to serve static assets under a relative URL. - -[ci]: https://about.gitlab.com/gitlab-ci/ -[ikiwiki]: https://ikiwiki.info/ -[install]: https://ikiwiki.info/install/ -[documentation]: https://ikiwiki.info/ -[userpages]: https://docs.gitlab.com/ce/user/project/pages/introduction.html#user-or-group-pages -[projpages]: https://docs.gitlab.com/ce/user/project/pages/introduction.html#project-pages +Version: 1.0.8 diff --git a/_config.yml b/_config.yml new file mode 100644 index 0000000000000000000000000000000000000000..a186baa7c919855f650d4ef7fc3bfed1db1c8ef6 --- /dev/null +++ b/_config.yml @@ -0,0 +1,152 @@ +remote_theme: Drassil/git-wiki-theme@master +# (string) Title of your wiki +title: "git-wiki-skeleton" +# (string) if you've installed your wiki in subfolder, you must change this configuration +# with your folder name, otherwise leave it empty +baseurl: "/git-wiki-skeleton" +# (string) Description of your wiki +description: +# (boolean) disable edit functionalities (edit/delete/add pages) +disable_edit: false +# (boolean) Enable/disable wiki page list in sidebar +show_wiki_pages: true +# (integer) Maximum number of wiki page to shown in sidebar +show_wiki_pages_limit: 10 +# (boolean) Enable/disable blog feature +blog_feature: true +# (boolean) Enable/disable wiki posts list in sidebar (needs blog_feature enabled) +show_wiki_posts: true +# (integer) Maximum number of wiki posts to shown in sidebar +show_wiki_posts_limit: 10 +# from jekyll (read jekyll doc) +paginate: 5 +paginate_path: "/assets/blog/page:num" +permalink: /assets/blog/posts/:year/:month/:day/:title:output_ext +# (boolean) Enable/disable download buttons in sidebar +show_downloads: true +# (string) Specify branch rendered by gitpages allowing wiki tool buttons to work +git_branch: "master" +# (string) Url of logo image, it can be full, absolute or relative. +logo_url: +# (string) The UA-XXXXX-Y code from google analytic to enable GA on your wiki +google_analytics: +# (string) folder where wiki pages are stored, it's needed for tool buttons +wiki_folder: "wiki" +# (boolean) if you're using github wiki as submodule then this config +# must be enabled to allow tool buttons to work properly +use_github_wiki: false +# (boolean) Enable "Edit with Prose.io" button in tools, it's a 3rd party +# service to edit github markdown pages easily +use_prose_io: true +# Select search_engine component from: +# - js: it uses a built in javascript component that uses generated js object +# - js_rss: it uses a built in javascript component that uses generated sitemap_full.xml to search inside your wiki with lunr library (slow and experimental) +# - github : it uses internal github repository search +# - google : it uses cse search bar, you need to configure google_cse_token +# +search_engine : "js" +# Setting google custom search engine for google +# cse search bar (https://cse.google.it/cse/) +google_cse_token: + +# (string) path of site root. Normally it's must be empty because _config.yml resides in the root of your repository. +# If you have _config.yml and your site in a subfolder, then change this config accordly +site_root: + +# +# Jekyll configurations +# + +# You can customize it changing default layout for all pages +# More info: https://jekyllrb.com/docs/configuration/ +# +# git-wiki includes some internal themes that you can choose +# check _layouts folder +# +markdown: kramdown +highlighter: rouge +kramdown: + input: GFM + syntax_highlighter: rouge + +defaults: + - + scope: + path: "wiki" + values: + permalink: /:basename + - + scope: + path: "" # an empty string here means all files in the project + values: + layout: "git-wiki-default" + - + scope: + path: "" + type: "pages" + values: + layout: "git-wiki-default" + - + scope: + path: "" + type: "posts" + values: + layout: "git-wiki-post" + - + scope: + path: "assets/blog" + values: + layout: "git-wiki-blog" +sass: + style: compressed +plugins: + - jekyll-avatar + - jekyll-coffeescript + - jekyll-default-layout + - jekyll-feed + - jekyll-gist + - jekyll-paginate + - jekyll-mentions + - jekyll-optional-front-matter + - jekyll-readme-index + - jekyll-redirect-from + - jekyll-remote-theme + - jekyll-relative-links + - jekyll-seo-tag + - jekyll-sitemap + - jekyll-titles-from-headings + - jemoji + - jekyll-gitlab-metadata + + +# +# INCLUDING HOOKS +# They are optional, change them only if you need +# Check wiki documentation to learn how they work +# + +inc_before_toc : +inc_after_toc : +inc_before_content : +inc_after_content : +inc_before_footer : +inc_after_footer : +inc_before_head : +inc_after_head : +inc_before_meta : +inc_after_meta : +inc_before_scripts : +inc_after_scripts : +inc_before_styles : +inc_after_styles : +inc_before_header : +inc_after_header : +inc_before_tail : +inc_after_tail : +inc_before_tools : +inc_after_tools : + +inc_before_page_list : +inc_after_page_list : sidebar.html +inc_before_post_list : +inc_after_post_list : diff --git a/_includes/sidebar.html b/_includes/sidebar.html new file mode 100644 index 0000000000000000000000000000000000000000..6f6ae6f420db597a0cc9ca4c7349cdba5f5bdb6c --- /dev/null +++ b/_includes/sidebar.html @@ -0,0 +1,6 @@ +Menu (<a href="{{ site.github.repository_url }}/edit/{{site.git_branch | escape}}/_includes/sidebar.html">Edit</a>): + +<ul> + <li><a href="{{ '/' | relative_url }}">Home</a></li> + <li><a href="{{ '/example-page' | relative_url }}">Example page</a></li> +</ul> diff --git a/_posts/2020-01-01-example-post.md b/_posts/2020-01-01-example-post.md new file mode 100644 index 0000000000000000000000000000000000000000..3d59a1ece11f96d0692842ab4b023a026ff803e4 --- /dev/null +++ b/_posts/2020-01-01-example-post.md @@ -0,0 +1,7 @@ +--- +published: true +--- + +## Example post + +This is an example post. You can edit it or create a new one diff --git a/assets/.gitkeep b/assets/.gitkeep new file mode 100644 index 0000000000000000000000000000000000000000..8b137891791fe96927ad78e64b0aad7bded08bdc --- /dev/null +++ b/assets/.gitkeep @@ -0,0 +1 @@ + diff --git a/content/Anemones.jpg b/content/Anemones.jpg deleted file mode 100644 index 7151241a028c8e606849478d43874d2f04999fe5..0000000000000000000000000000000000000000 Binary files a/content/Anemones.jpg and /dev/null differ diff --git a/content/Bootstrap_features.mdwn b/content/Bootstrap_features.mdwn deleted file mode 100644 index 12c3a08485399446f496125f15ca3c4c2bc8505c..0000000000000000000000000000000000000000 --- a/content/Bootstrap_features.mdwn +++ /dev/null @@ -1,136 +0,0 @@ -# Bootstrap features - -This page will contain a display of various features from Bootstrap. -They require some manual HTML tags. -Note that not all Markdown parsers allow Markdown markup inside all HTML tags. -In the case of ikiwiki, adding `markdown="1"` to `div` elements usually allows markup to be used inside them. -For a full list of features provided by Bootstrap 4, go to <http://v4-alpha.getbootstrap.com/getting-started/introduction/>. - -<div class="jumbotron" markdown="1"> -## Jumbotron - -It's big and in your face. - ---- - -You can still use Markdown syntax inside HTML blocks, if you are careful. - -<a class="btn btn-primary btn-large" href="#">Button</a> -</div> - -## Labels <span class="label label-info">Hi!</span> - -Span elements work inside Markdown headings. - -<div class="card card-block" markdown="1"> -## Cards - -Put a border with soft round corners around your content. -</div> - - -## Card decks - -These require some more work. -You can use the `\[[!img]]` directive, but make sure to add `class="card-img-top"` or `class="card-img-bottom"` where appropriate. -For images in cards to work properly, they need to have their width forced to 100% of their container. -This is done in the `style.css` file that comes with ikistrap. - -Another issue is that due to all the nested HTML tags, even with `markdown="1"`, Markdown markup does not get parsed anymore. - -<div class="card-deck"> -<div class="card-deck-wrapper"> -<div class="card"> -[[!img Lemonshark.jpg alt="Lemon shark" class="card-img-top"]] -<div class="card-block"> -<p class="card-text"> -A lemon shark and his little friends are out for a swim. -</p> -<p><a href="#" class="btn btn-danger">Escape</a></p> -</div> -</div> -<div class="card"> -[[!img Anemones.jpg alt="Anemones" class="card-img-top"]] -<div class="card-block"> -<p class="card-text"> -Anemones look really nice and are much less dangerous than lemon sharks. -</p> -<p><a href="#" class="btn btn-success">Admire</a></p> -</div> -</div> -<div class="card"> -[[!img Sea_Star.jpg alt="Sea star" class="card-img-top"]] -<div class="card-block"> -<p class="card-text"> -Sea stars are also less dangerous than lemon sharks, but they are slightly more dangerous than -anemones, <em>especially</em> when stepped on. -</p> -<p><a href="#" class="btn btn-warning">Sidestep</a></p> -</div> -</div> -</div> -</div> - -## Card columns - -These can be created by writing the outer card-columns `div` elements yourself, -and using `\[[!inline]]` with `template="simplecard"` to generate the cards. - -<div class="card-columns"> -[[!inline pages="sample_text/* and !*/Discussion" template="simplecard" feeds="no"]] -</div> - - -## Carousel - -These can be created by writing the outer two carousel `div` elements yourself, -and using `\[[!inline]]` with `template="carouselpage"` to generate the carousel items. - -<p> -<div id="carousel-example-pages" class="carousel slide" data-ride="carousel"> -<ol class="carousel-indicators"></ol> -<div class="carousel-inner" role="listbox"> -[[!inline pages="sample_text/* and !*/Discussion" template="carouselpage" feeds="no"]] -</div> -<a class="left carousel-control" href="#carousel-example-pages" role="button" data-slide="prev"> -<span class="icon-prev" aria-hidden="true"></span> -<span class="sr-only">Previous</span> -</a> -<a class="right carousel-control" href="#carousel-example-pages" role="button" data-slide="next"> -<span class="icon-next" aria-hidden="true"></span> -<span class="sr-only">Next</span> -</a> -</div> -</p> - -If you only want to show images, use `template="carouselimage"`, and select your images directly with the `pages` parameter. - -<p> -<div id="carousel-example-images" class="carousel slide" data-ride="carousel"> -<div class="carousel-inner" role="listbox"> -[[!inline pages="*.jpg" template="carouselimage" feeds="no"]] -</div> -<a class="left carousel-control" href="#carousel-example-images" role="button" data-slide="prev"> -<span class="icon-prev" aria-hidden="true"></span> -<span class="sr-only">Previous</span> -</a> -<a class="right carousel-control" href="#carousel-example-images" role="button" data-slide="next"> -<span class="icon-next" aria-hidden="true"></span> -<span class="sr-only">Next</span> -</a> -</div> -</p> - -## Progress bars - -Ikistrap also provides a progress directive which works in the same way as the progress plugin, -but it also allows an extra class to be specified to change the style per bar. - -[[!progress totalpages="* and !*/Discussion" donepages="*/Discussion"]] -[[!progress percent="33%"]] -[[!progress percent="66%" class="progress-success progress-striped"]] - -## Other stuff - -Goes here. - diff --git a/content/Calendars.mdwn b/content/Calendars.mdwn deleted file mode 100644 index 5d8e15223cd635be27f9251dd9f4c12826e2e0c8..0000000000000000000000000000000000000000 --- a/content/Calendars.mdwn +++ /dev/null @@ -1,10 +0,0 @@ -# Calendar - -This is an example of the ikiwiki calendar function. -Here is a monthly calendar: - -[[!calendar type="month"]] - -And this is a yearly calendar: - -[[!calendar type="year"]] diff --git a/content/Comments.mdwn b/content/Comments.mdwn deleted file mode 100644 index 24cc74445bb802ce970e27dd719b7824c7c27858..0000000000000000000000000000000000000000 --- a/content/Comments.mdwn +++ /dev/null @@ -1,3 +0,0 @@ -# Comments - -This is an example of a page where comments are allowed. diff --git a/content/Comments/comment_1._comment b/content/Comments/comment_1._comment deleted file mode 100644 index ab9901d9d31543f6cae8b9d2a01ee01e320a049b..0000000000000000000000000000000000000000 --- a/content/Comments/comment_1._comment +++ /dev/null @@ -1,9 +0,0 @@ -[[!comment format=mdwn -username="Anonymous Coward" -subject="Indeed" -date="2009-06-02T19:05:00Z" -content=""" -Hi, I just want to say that I totally agree with you. -Have a nice day! -""" -]] diff --git a/content/Comments/comment_2._comment b/content/Comments/comment_2._comment deleted file mode 100644 index 5b29715e022a3862bd85c218c00894f39b05c5fc..0000000000000000000000000000000000000000 --- a/content/Comments/comment_2._comment +++ /dev/null @@ -1,9 +0,0 @@ -[[!comment format=mdwn -username="Pseudonymous Person" -subject="I am disagree" -date="2009-06-02T19:05:01Z" -content=""" -I don't think so. Eggs should neither be capped at the top or at the bottom. -Symmetry is only attained by slicing it in half in a plane spanned by the line between the top and bottom. -""" -]] diff --git a/content/Inline_pages.mdwn b/content/Inline_pages.mdwn deleted file mode 100644 index 46d540e63754445fdd9df9b456ba6eb6e6297639..0000000000000000000000000000000000000000 --- a/content/Inline_pages.mdwn +++ /dev/null @@ -1,9 +0,0 @@ -# Inline pages - -Here is an example of inline pages using the default inlining theme: - -[[!inline pages="sample_text/* and !*/Discussion" reverse="yes" limit="3"]] - -Here is an example of inlining with actions enabled: - -[[!inline pages="sample_text/* and !*/Discussion" reverse="yes" skip="3" limit="2" actions="1"]] diff --git a/content/Lemonshark.jpg b/content/Lemonshark.jpg deleted file mode 100644 index e568a5ba7a71c543310bebad451ebbb8f3424432..0000000000000000000000000000000000000000 Binary files a/content/Lemonshark.jpg and /dev/null differ diff --git a/content/Sea_Star.jpg b/content/Sea_Star.jpg deleted file mode 100644 index 5fb9001d447a7f1fa4732f784ef5f192a06bf2a1..0000000000000000000000000000000000000000 Binary files a/content/Sea_Star.jpg and /dev/null differ diff --git a/content/index.mdwn b/content/index.mdwn deleted file mode 100644 index 205a30f7966b8d037bcac582c5a6ba658e465782..0000000000000000000000000000000000000000 --- a/content/index.mdwn +++ /dev/null @@ -1,29 +0,0 @@ -# Welcome to Ikiwiki hosted by GitLab Pages - -This is an example wiki to show off how Ikiwiki is deployed with [GitLab Pages]. - -It uses the [Ikistrap] theme which provides a fully-featured, modern looking -HTML5 theme for ikiwiki. It uses Bootstrap 4 and Fonts Awesome. - -## Features - -Ikistrap has the following features: - -* Good use of HTML5 semantic elements. -* Responsive layout. -* Standards-compliant. -* Compatible with text-only browsers. -* Header supporting parentlinks, wiki actions, search form, language selection and trails. -* Sidebar styled as a Boostrap 4 card, using the Bootstrap 4 grid system. -* Footer that is pushed down to the bottom of the screen with tags, backlinks, copyright, license and modification date. -* [[Inline pages]] that are by default styled as Bootstrap 4 cards. - -Note that ikistrap doesn't add any special support for Bootstrap to the Markdown language. -If you want to make use of [[Bootstrap features]] inside your text, you will have to manually add the appropriate HTML tags. - -## Contribute - -If you want to contribute to this website, visit <https://gitlab.com/pages/ikiwiki>. - -[gitlab pages]: https://pages.gitlab.io -[ikistrap]: https://github.com/gsliepen/ikistrap diff --git a/content/inlinetest.mdwn b/content/inlinetest.mdwn deleted file mode 100644 index 95cebf224594e30c9cb7c7fa257f0bb3182a3978..0000000000000000000000000000000000000000 --- a/content/inlinetest.mdwn +++ /dev/null @@ -1 +0,0 @@ -[[!inline pages="sample_text/*"]] diff --git a/content/sample_text/Donec_dapibus.mdwn b/content/sample_text/Donec_dapibus.mdwn deleted file mode 100644 index b995fa6346577be33f13eab1d7419c2705a41158..0000000000000000000000000000000000000000 --- a/content/sample_text/Donec_dapibus.mdwn +++ /dev/null @@ -1 +0,0 @@ -Donec dapibus orci sit amet elit. Maecenas rutrum ultrices lectus. Aliquam suscipit, lacus a iaculis adipiscing, eros orci pellentesque nisl, non pharetra dolor urna nec dolor. Integer cursus dolor vel magna. Integer ultrices feugiat sem. Proin nec nibh. Duis eu dui quis nunc sagittis lobortis. Fusce pharetra, enim ut sodales luctus, lectus arcu rhoncus purus, in fringilla augue elit vel lacus. In hac habitasse platea dictumst. Aliquam erat volutpat. Fusce iaculis elit id tellus. Ut accumsan malesuada turpis. Suspendisse potenti. Vestibulum lacus augue, lobortis mattis, laoreet in, varius at, nisi. Nunc gravida. Phasellus faucibus. In hac habitasse platea dictumst. Integer tempor lacus eget lectus. Praesent fringilla augue fringilla dui. diff --git a/content/sample_text/Donec_semper.mdwn b/content/sample_text/Donec_semper.mdwn deleted file mode 100644 index bdcb1ab454e93eb613e2b2cfd32265c9aa009c2c..0000000000000000000000000000000000000000 --- a/content/sample_text/Donec_semper.mdwn +++ /dev/null @@ -1 +0,0 @@ -Donec semper, sem nec tristique tempus, justo neque commodo nisl, ut gravida sem tellus suscipit nunc. Aliquam erat volutpat. Ut tincidunt pretium elit. Aliquam pulvinar. Nulla cursus. Suspendisse potenti. Etiam condimentum hendrerit felis. Duis iaculis aliquam enim. Donec dignissim augue vitae orci. Curabitur luctus felis a metus. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. In varius neque at enim. Suspendisse massa nulla, viverra in, bibendum vitae, tempor quis, lorem. diff --git a/content/sample_text/Lorem_ipsum.mdwn b/content/sample_text/Lorem_ipsum.mdwn deleted file mode 100644 index f0199bc9dba95b83a66e85f3802c982709afe2b7..0000000000000000000000000000000000000000 --- a/content/sample_text/Lorem_ipsum.mdwn +++ /dev/null @@ -1,4 +0,0 @@ -[[!meta author="Cicero"]] -[[!meta date="45 B.C."]] - -Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed at ante. Mauris eleifend, quam a vulputate dictum, massa quam dapibus leo, eget vulputate orci purus ut lorem. In fringilla mi in ligula. Pellentesque aliquam quam vel dolor. Nunc adipiscing. Sed quam odio, tempus ac, aliquam molestie, varius ac, tellus. Vestibulum ut nulla aliquam risus rutrum interdum. Pellentesque lorem. Curabitur sit amet erat quis risus feugiat viverra. Pellentesque augue justo, sagittis et, lacinia at, venenatis non, arcu. Nunc nec libero. In cursus dictum risus. Etiam tristique nisl a nulla. Ut a orci. Curabitur dolor nunc, egestas at, accumsan at, malesuada nec, magna. diff --git a/content/sample_text/Nulla_facilisi.mdwn b/content/sample_text/Nulla_facilisi.mdwn deleted file mode 100644 index 0e8a0b97f5bcf2bff283070dda0af1e7437fb0a8..0000000000000000000000000000000000000000 --- a/content/sample_text/Nulla_facilisi.mdwn +++ /dev/null @@ -1,2 +0,0 @@ -[[!tag Cicero Latin typesetting]] -Nulla facilisi. Nunc volutpat. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia Curae; Ut sit amet orci vel mauris blandit vehicula. Nullam quis enim. Integer dignissim viverra velit. Curabitur in odio. In hac habitasse platea dictumst. Ut consequat, tellus eu volutpat varius, justo orci elementum dolor, sed imperdiet nulla tellus ut diam. Vestibulum ipsum ante, malesuada quis, tempus ac, placerat sit amet, elit. diff --git a/content/sample_text/Sed_eget.mdwn b/content/sample_text/Sed_eget.mdwn deleted file mode 100644 index d360de333f0d6d1bed19cfb289530c1b6f9f2698..0000000000000000000000000000000000000000 --- a/content/sample_text/Sed_eget.mdwn +++ /dev/null @@ -1 +0,0 @@ -Sed eget turpis a pede tempor malesuada. Vivamus quis mi at leo pulvinar hendrerit. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Pellentesque aliquet lacus vitae pede. Nullam mollis dolor ac nisi. Phasellus sit amet urna. Praesent pellentesque sapien sed lacus. Donec lacinia odio in odio. In sit amet elit. Maecenas gravida interdum urna. Integer pretium, arcu vitae imperdiet facilisis, elit tellus tempor nisi, vel feugiat ante velit sit amet mauris. Vivamus arcu. Integer pharetra magna ac lacus. Aliquam vitae sapien in nibh vehicula auctor. Suspendisse leo mauris, pulvinar sed, tempor et, consequat ac, lacus. Proin velit. Nulla semper lobortis mauris. Duis urna erat, ornare et, imperdiet eu, suscipit sit amet, massa. Nulla nulla nisi, pellentesque at, egestas quis, fringilla eu, diam. diff --git a/content/sidebar.mdwn b/content/sidebar.mdwn deleted file mode 100644 index 1368346fc4692cf358df2a81c4294c14a8da15a6..0000000000000000000000000000000000000000 --- a/content/sidebar.mdwn +++ /dev/null @@ -1,7 +0,0 @@ -This is the sidebar. - -* [[/index]] -* [[ikiwiki]] -* [[sandbox]] -* [[shortcuts]] -* [[templates]] diff --git a/content/tag/Cicero/index.mdwn b/content/tag/Cicero/index.mdwn deleted file mode 100644 index 1db90cd180d32363e5ee2dc0f8cd321e658b82ed..0000000000000000000000000000000000000000 --- a/content/tag/Cicero/index.mdwn +++ /dev/null @@ -1,4 +0,0 @@ -[[!meta title="pages tagged Cicero"]] - -[[!inline pages="tagged(Cicero)" actions="no" archive="yes" -feedshow=10]] diff --git a/content/tag/Latin/index.mdwn b/content/tag/Latin/index.mdwn deleted file mode 100644 index eb55a314833efa0b7d258e4ffe8f1c08ee11f87f..0000000000000000000000000000000000000000 --- a/content/tag/Latin/index.mdwn +++ /dev/null @@ -1,4 +0,0 @@ -[[!meta title="pages tagged Latin"]] - -[[!inline pages="tagged(Latin)" actions="no" archive="yes" -feedshow=10]] diff --git a/content/tag/typesetting/index.mdwn b/content/tag/typesetting/index.mdwn deleted file mode 100644 index b017ffd78b88e51ea8ec57c52dc95f22bca0b7e9..0000000000000000000000000000000000000000 --- a/content/tag/typesetting/index.mdwn +++ /dev/null @@ -1,4 +0,0 @@ -[[!meta title="pages tagged typesetting"]] - -[[!inline pages="tagged(typesetting)" actions="no" archive="yes" -feedshow=10]] diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000000000000000000000000000000000000..f391d1dd4f5e9185a0037159da69a1e5ba14b17d --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,17 @@ +version: '3.7' +services: + gitlab-wiki-skeleton: + build: + context: . + dockerfile: .env-files/Dockerfile.gitlab + ports: + - 4000:4000 + - 35729:35729 + environment: + - BUNDLE_GEMFILE=.env-files/Gemfile.gitlab + volumes: + - .:/srv/jekyll + - gitlab_site:/srv/jekyll/_site + command: 'bundle exec jekyll serve --host 0.0.0.0 --force_polling --livereload' +volumes: + gitlab_site: \ No newline at end of file diff --git a/ikiwiki.setup b/ikiwiki.setup deleted file mode 100644 index fde89156e25885b64f7553b9647d919a7be9e382..0000000000000000000000000000000000000000 --- a/ikiwiki.setup +++ /dev/null @@ -1,394 +0,0 @@ -# IkiWiki::Setup::Yaml - YAML formatted setup file -# -# Setup file for ikiwiki. -# -# Passing this to ikiwiki --setup will make ikiwiki generate -# wrappers and build the wiki. -# -# Remember to re-run ikiwiki --setup any time you edit this file. -# -# name of the wiki -wikiname: Ikiwiki on GitLab Pages -# contact email for wiki -#adminemail: me@example.com -# users who are wiki admins -adminuser: [] -# users who are banned from the wiki -banned_users: [] -# where the source of the wiki is located -srcdir: ./content -# where to build the wiki -destdir: ./public -# base url to the wiki -url: https://pages.gitlab.io/ikiwiki -# url to the ikiwiki.cgi -cgiurl: '' -# do not adjust cgiurl if CGI is accessed via different URL -reverse_proxy: 0 -# filename of cgi wrapper to generate -cgi_wrapper: '' -# mode for cgi_wrapper (can safely be made suid) -cgi_wrappermode: 06755 -# number of seconds to delay CGI requests when overloaded -cgi_overload_delay: '' -# message to display when overloaded (may contain html) -cgi_overload_message: '' -# enable optimization of only refreshing committed changes? -only_committed_changes: 0 -# rcs backend to use -rcs: '' -# plugins to add to the default configuration -add_plugins: -- goodstuff -- favicon -- sidebar -- highlight -- typography -- ikistrap -# plugins to disable -disable_plugins: [] -# additional directory to search for template files -templatedir: ./themes/ikistrap/templates -#templatedir: /usr/share/ikiwiki/templates -# base wiki source location -#underlaydir: /usr/share/ikiwiki/basewiki -underlaydir: ./themes/ikistrap/basewiki -# display verbose messages? -verbose: 1 -# log to syslog? -#syslog: 1 -# create output files named page/index.html? -usedirs: 1 -# use '!'-prefixed preprocessor directives? -prefix_directives: 1 -# use page/index.mdwn source files -indexpages: 0 -# enable Discussion pages? -discussion: 1 -# name of Discussion pages -discussionpage: Discussion -# use elements new in HTML5 like <section>? -html5: 1 -# only send cookies over SSL connections? -sslcookie: 0 -# extension to use for new pages -default_pageext: mdwn -# extension to use for html files -htmlext: html -# strftime format string to display date -timeformat: '%c' -# UTF-8 locale to use -#locale: en_US.UTF-8 -# put user pages below specified page -userdir: '' -# how many backlinks to show before hiding excess (0 to show all) -numbacklinks: 10 -# attempt to hardlink source files? (optimisation for large files) -hardlink: 0 -# force ikiwiki to use a particular umask (keywords public, group or private, or a number) -#umask: public -# group for wrappers to run in -#wrappergroup: ikiwiki -# extra library and plugin directories -libdirs: [] -# extra library and plugin directory (searched after libdirs) -libdir: '' -# environment variables -ENV: {} -# time zone name -timezone: :/etc/localtime -# regexp of normally excluded files to include -#include: ^\.htaccess$ -# regexp of files that should be skipped -#exclude: ^(*\.private|Makefile)$ -# specifies the characters that are allowed in source filenames -wiki_file_chars: -[:alnum:]+/.:_ -# allow symlinks in the path leading to the srcdir (potentially insecure) -allow_symlinks_before_srcdir: 0 -# cookie control -cookiejar: - file: ~/.ikiwiki/cookies -# set custom user agent string for outbound HTTP requests e.g. when fetching aggregated RSS feeds -useragent: ikiwiki/3.20160509 -# theme has a responsive layout? (mobile-optimized) -responsive_layout: 1 -# try harder to produce deterministic output -deterministic: 0 - -###################################################################### -# core plugins -# (editpage, htmlscrubber, inline, link, meta, parentlinks, templatebody) -###################################################################### - -# htmlscrubber plugin -# PageSpec specifying pages not to scrub -#htmlscrubber_skip: '!*/Discussion' - -# inline plugin -# enable rss feeds by default? -#rss: 0 -# enable atom feeds by default? -#atom: 0 -# allow rss feeds to be used? -#allowrss: 0 -# allow atom feeds to be used? -#allowatom: 0 -# urls to ping (using XML-RPC) on feed update -pingurl: [] - -###################################################################### -# auth plugins -# (anonok, blogspam, emailauth, httpauth, lockedit, moderatedcomments, -# opendiscussion, openid, passwordauth, signinedit) -###################################################################### - -# anonok plugin -# PageSpec to limit which pages anonymous users can edit -#anonok_pagespec: '*/discussion' - -# blogspam plugin -# PageSpec of pages to check for spam -#blogspam_pagespec: postcomment(*) -# options to send to blogspam server -#blogspam_options: blacklist=1.2.3.4,blacklist=8.7.6.5,max-links=10 -# blogspam server JSON url -#blogspam_server: '' - -# emailauth plugin -# email address to send emailauth mails as (default: adminemail) -#emailauth_sender: '' - -# httpauth plugin -# url to redirect to when authentication is needed -#cgiauthurl: http://example.com/wiki/auth/ikiwiki.cgi -# PageSpec of pages where only httpauth will be used for authentication -#httpauth_pagespec: '!*/Discussion' - -# lockedit plugin -# PageSpec controlling which pages are locked -#locked_pages: '!*/Discussion' - -# moderatedcomments plugin -# PageSpec matching users or comment locations to moderate -#moderate_pagespec: '*' - -# openid plugin -# url pattern of openid realm (default is cgiurl) -#openid_realm: '' -# url to ikiwiki cgi to use for openid authentication (default is cgiurl) -#openid_cgiurl: '' - -# passwordauth plugin -# a password that must be entered when signing up for an account -#account_creation_password: s3cr1t -# cost of generating a password using Authen::Passphrase::BlowfishCrypt -#password_cost: 8 - -###################################################################### -# format plugins -# (creole, highlight, hnb, html, mdwn, otl, rawhtml, rst, textile, txt) -###################################################################### - -# highlight plugin -# types of source files to syntax highlight -#tohighlight: .c .h .cpp .pl .py Makefile:make -# location of highlight's filetypes.conf -#filetypes_conf: /etc/highlight/filetypes.conf -# location of highlight's langDefs directory -#langdefdir: /usr/share/highlight/langDefs - -# mdwn plugin -# enable multimarkdown features? -#multimarkdown: 0 -# disable use of markdown discount? -#nodiscount: 0 - -###################################################################### -# special-purpose plugins -# (osm, underlay) -###################################################################### - -# osm plugin -# the default zoom when you click on the map link -#osm_default_zoom: 15 -# the icon shown on links and on the main map -#osm_default_icon: ikiwiki/images/osm.png -# the alt tag of links, defaults to empty -#osm_alt: '' -# the output format for waypoints, can be KML, GeoJSON or CSV (one or many, comma-separated) -#osm_format: KML -# the icon attached to a tag, displayed on the map for tagged pages -#osm_tag_default_icon: icon.png -# Url for the OpenLayers.js file -#osm_openlayers_url: http://www.openlayers.org/api/OpenLayers.js -# Layers to use in the map. Can be either the 'OSM' string or a type option for Google maps (GoogleNormal, GoogleSatellite, GoogleHybrid or GooglePhysical). It can also be an arbitrary URL in a syntax acceptable for OpenLayers.Layer.OSM.url parameter. -#osm_layers: -# OSM: GoogleSatellite -# Google maps API key, Google layer not used if missing, see https://code.google.com/apis/console/ to get an API key -#osm_google_apikey: '' - -# underlay plugin -# extra underlay directories to add -#add_underlays: -#- /home/axil/wiki.underlay - -###################################################################### -# web plugins -# (404, attachment, comments, editdiff, edittemplate, getsource, google, -# goto, mirrorlist, remove, rename, repolist, search, theme, userlist, -# websetup, wmd) -###################################################################### - -# attachment plugin -# enhanced PageSpec specifying what attachments are allowed -#allowed_attachments: virusfree() and mimetype(image/*) and maxsize(50kb) -# virus checker program (reads STDIN, returns nonzero if virus found) -#virus_checker: clamdscan - - -# comments plugin -# PageSpec of pages where comments are allowed -#comments_pagespec: blog/* and !*/Discussion -# PageSpec of pages where posting new comments is not allowed -#comments_closed_pagespec: blog/controversial or blog/flamewar -# Base name for comments, e.g. "comment_" for pages like "sandbox/comment_12" -#comments_pagename: '' -# Interpret directives in comments? -#comments_allowdirectives: 0 -# Allow anonymous commenters to set an author name? -#comments_allowauthor: 0 -# commit comments to the VCS -#comments_commit: 1 -# Restrict formats for comments to (no restriction if empty) -#comments_allowformats: mdwn txt - -# getsource plugin -# Mime type for returned source. -#getsource_mimetype: text/plain; charset=utf-8 - -# mirrorlist plugin -# list of mirrors -#mirrorlist: {} -# generate links that point to the mirrors' ikiwiki CGI -#mirrorlist_use_cgi: 1 - -# repolist plugin -# URIs of repositories containing the wiki's source -#repositories: -#- svn://svn.example.org/wiki/trunk - -# search plugin -# path to the omega cgi program -#omega_cgi: /usr/lib/cgi-bin/omega/omega -# use google site search rather than internal xapian index? -#google_search: 1 - -# theme plugin -# name of theme to enable -#theme: actiontabs - -# websetup plugin -# list of plugins that cannot be enabled/disabled via the web interface -#websetup_force_plugins: [] -# list of additional setup field keys to treat as unsafe -#websetup_unsafe: [] -# show unsafe settings, read-only, in web interface? -#websetup_show_unsafe: 1 - -###################################################################### -# widget plugins -# (calendar, color, conditional, cutpaste, date, format, fortune, -# graphviz, haiku, headinganchors, img, linkmap, listdirectives, map, -# more, orphans, pagecount, pagestats, poll, polygen, postsparkline, -# progress, shortcut, sparkline, table, template, teximg, toc, toggle, -# version) -###################################################################### - -# calendar plugin -# base of the archives hierarchy -#archivebase: archives -# PageSpec of pages to include in the archives, if option `calendar_autocreate` is true. -#archive_pagespec: page(posts/*) and !*/Discussion -# autocreate new calendar pages? -#calendar_autocreate: 1 -# if set, when building calendar pages, also build pages of year and month when no pages were published (building empty calendars). -#calendar_fill_gaps: 1 - -# img plugin -# Image formats to process (jpeg, png, gif, svg, pdf or 'everything' to accept all) -#img_allowed_formats: '' - -# listdirectives plugin -# directory in srcdir that contains directive descriptions -#directive_description_dir: ikiwiki/directive - -# teximg plugin -# Should teximg use dvipng to render, or dvips and convert? -#teximg_dvipng: '' -# LaTeX prefix for teximg plugin -#teximg_prefix: | -# \documentclass{article} -# \usepackage[utf8]{inputenc} -# \usepackage{amsmath} -# \usepackage{amsfonts} -# \usepackage{amssymb} -# \pagestyle{empty} -# \begin{document} -# LaTeX postfix for teximg plugin -#teximg_postfix: \end{document} - -###################################################################### -# other plugins -# (aggregate, autoindex, brokenlinks, camelcase, ddate, embed, favicon, -# filecheck, flattr, goodstuff, htmlbalance, localstyle, loginselector, -# notifyemail, pagetemplate, pingee, pinger, prettydate, recentchanges, -# recentchangesdiff, relativedate, rsync, sidebar, smiley, -# sortnaturally, tag, testpagespec, trail, transient) -###################################################################### - -# aggregate plugin -# enable aggregation to internal pages? -#aggregateinternal: 1 -# allow aggregation to be triggered via the web? -#aggregate_webtrigger: 0 - -# autoindex plugin -# commit autocreated index pages -#autoindex_commit: 1 - -# camelcase plugin -# list of words to not turn into links -#camelcase_ignore: [] - -# flattr plugin -# userid or user name to use by default for Flattr buttons -#flattr_userid: joeyh - -# pinger plugin -# how many seconds to try pinging before timing out -#pinger_timeout: 15 - -# prettydate plugin -# format to use to display date -#prettydateformat: '%X, %B %o, %Y' - -# recentchanges plugin -# name of the recentchanges page -recentchangespage: recentchanges -# number of changes to track -recentchangesnum: 100 - -# rsync plugin -# command to run to sync updated pages -#rsync_command: rsync -qa --delete . user@host:/path/to/docroot/ - -# sidebar plugin -# show sidebar page on all pages? -#global_sidebars: 1 - -# tag plugin -# parent page tags are located under -#tagbase: tag -# autocreate new tag pages? -#tag_autocreate: 1 -# commit autocreated tag pages -#tag_autocreate_commit: 1 diff --git a/wiki/.gitkeep b/wiki/.gitkeep new file mode 100644 index 0000000000000000000000000000000000000000..8b137891791fe96927ad78e64b0aad7bded08bdc --- /dev/null +++ b/wiki/.gitkeep @@ -0,0 +1 @@ + diff --git a/wiki/example-page.md b/wiki/example-page.md new file mode 100644 index 0000000000000000000000000000000000000000..40055d14c7098f24ac9b12ef104801f957f359fc --- /dev/null +++ b/wiki/example-page.md @@ -0,0 +1,3 @@ +## Example page + +This is an example page. You can edit it or create a [new one](new_page.md)