• Stars
    star
    19
  • Rank 1,125,214 (Top 23 %)
  • Language
    Ada
  • License
    Apache License 2.0
  • Created over 8 years ago
  • Updated 4 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Ada Wiki Engine - Wiki parser and renderer with several Wiki syntaxes

Ada Wiki

Alire Build Status Test Status Coverage Download License Commits

Ada Wiki is a small library that provides a Wiki engine supporting several Wiki syntaxes.

The library allows to:

  • Parse a wiki text such as Markdown, Mediawiki, Creole, PhpBB, Dotclear and Google Code,
  • Parse HTML content in embedded wiki text,
  • Filter out the wiki, HTML or text through customizable filters,
  • Render the wiki text in HTML, text or another wiki format.

The Ada Wiki library is used by Ada Web Application for the implementation of the blog and wiki online plugins.

You can play with the Wiki engine by using Wi2wic on https://wi2wic.vacs.fr/wi2wic/index.html

Version 1.4.1 - Jul 2023

  • Fix parsing some HTML document when we reach end of line buffer
  • Fix <pre> HTML blocks to keep CR in order to preserve the end of lines
  • Fix releasing memory for some document nodes

List all versions

Build with Alire

alr with wikiada

Build with configure

To use Ada Wiki library, configure as follows:

./configure
make

By default the configure is setup to use the Ada Utility Library. You can disable that by using the 'with-ada-util=no' configure option. When disabled, the build will use some locally imported files (in src/util) but the unit tests will not be compiled.

./configure --with-ada-util=no
make

The unit tests are built and executed with:

make test

For the installation, use the following command:

make install

Build without configure

Since the integration with Alire, you can build without running configure. However, there are a number of checks and dependencies which are not verified. The following assumes that you have installed the Ada Utility Library.

For a simple build, use:

gprbuild -aP.alire -Pwikiada -p

You can then use gprinstall for the installation:

gprinstall -aP.alire -Pwikiada -p

Samples

A first example shows how to render a Wiki text into HTML or text. Another one takes some HTML content and render a Wiki text in one of the supported Wiki format. To build the samples, use the following command:

gnatmake -Psamples

To import a HTML content and produce a Wiki text, use the following:

bin/import -M https://en.wikibooks.org/wiki/Ada_Programming > content.wiki

And to render the Wiki text into HTML use:

bin/render -M content.wiki

The 'words' samples illustrates the use of filters to collect information stored in the documents. It collects words and links and report their usage in the document. The next command reports the links used in the document:

bin/words -l -M content.wiki

A complete online Wiki application is part of AWA and can be tried online with Atlas

Documentation

Sites Using Ada Wiki

More Repositories

1

ada-awa

Ada Web Application - Framework to build high performance secure web applications
Ada
90
star
2

ada-util

Ada Utility Library - Composing streams, processes, logs, serialization, encoders and more
Ada
68
star
3

ada-keystore

Ada Keystore - protect your sensitive data with secure storage
Ada
31
star
4

sql-benchmark

Tool to make SQL benchmark on different drivers, languages and databases
Ada
29
star
5

swagger-ada

Ada support for OpenAPI code generator
Ada
25
star
6

ada-ado

Ada Database Objects
Ada
24
star
7

ada-security

Ada Security - OAuth 2.0 client and server framework to secure web applications
Ada
22
star
8

ada-enet

Ada Embedded Network Stack
Ada
19
star
9

etherscope

Ethernet traffic monitor on a STM32F746 board
Ada
17
star
10

dynamo

Dynamo Ada Application Code Generator
Ada
17
star
11

ada-asf

Ada Server Faces - Web Server Faces JSR 252, JSR 314 and JSR 344
Ada
12
star
12

resource-embedder

ARE - Advanced Resource Embedder include files, scripts, images in Ada, C, Go binaries
Ada
10
star
13

ada-search

Ada
9
star
14

ada-bfd

Ada BFD is an Ada binding for the GNU Binutils BFD library. It allows to read binary ELF, COFF files by using the GNU BFD.
Ada
8
star
15

swagger-ada-todo

Simple todo list server with OpenAPI
Ada
8
star
16

ada-el

Ada EL - Expression Language Library (JSR245)
Ada
7
star
17

atlas

AWA Demonstrator
TSQL
7
star
18

ada-servlet

Ada Servlet - Web Servlet Library following JSR 154, JSR 315
Ada
7
star
19

ada-lzma

Ada binding for liblzma compression library
Ada
6
star
20

mat

Memory Analysis Tool
Ada
6
star
21

ada-css

Ada parser for CSS files with CSS Object Model API
Ada
5
star
22

ada-stemmer

Multi natural language stemmer with Snowball generator
Ada
4
star
23

stm32-ui

STM32 UI library and tools
Ada
4
star
24

ada-rest-api-server-benchmark

Benchmark for REST api on Ada servers
Ada
3
star
25

jason

Project and ticket management
Ada
3
star
26

wi2wic

Wiki 2 Wiki Converter
Ada
2
star
27

hestia

Heat Controller
Ada
2
star
28

ada-mail

Mail tools
Ada
2
star
29

ada-libsecret

Ada Binding for the libsecret library
Ada
2
star
30

bbox-ada-api

Ada Binding for the Bbox API
Ada
2
star
31

babel

Babel Backup
Ada
1
star
32

ada-awe

Automatically exported from code.google.com/p/ada-awe
Ada
1
star
33

helios

Helios Fast Reliable Monitoring Agent
Ada
1
star
34

awa-alire-index

1
star
35

xcra

Automatically exported from code.google.com/p/xcra
C++
1
star