Skip to content

Commit 4390a6a

Browse files
Add: site generation from documentation (#203)
Add maven site plugin to pom Add markdown directory for documentation Add skin config in site.xml Moved wiki files to markdown directory Updated README
1 parent abecded commit 4390a6a

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

53 files changed

+2549
-2184
lines changed

README.md

Lines changed: 49 additions & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -36,54 +36,54 @@ Visit [Eiffel Community](https://eiffel-community.github.io) to get started and
3636

3737
# Documentation
3838

39-
1. [**Configuration**](./wiki/Configuration.md)
40-
1. [**Running Eiffel Intelligence**](./wiki/Running-Eiffel-Intelligence.md)
41-
- [**Prerequisites**](./wiki/Running-Eiffel-Intelligence.md#Prerequisites)
42-
1. [**REST API**](./wiki/REST-API.md)
43-
- [**Query aggregated objects**](./wiki/Query.md)
44-
- [**Perform query on created aggregated object**](./wiki/Query.md#Perform-query-on-created-aggregated-object)
45-
- [**Perform freestyle query on created aggregated object**](./wiki/Query.md#Perform-freestyle-query-on-created-aggregated-object)
46-
- [**Example of freestyle query that returns all aggregated objects**](./wiki/Query.md#Example-of-freestyle-query-that-returns-all-aggregated-objects)
47-
- [**Query an aggregated object and filter it with specific key**](./wiki/Query.md#Query-an-aggregated-object-and-filter-it-with-specific-key)
48-
- [**Query missed notifications**](./wiki/Query.md#Query-missed-notifications)
49-
- [**Running rules on objects**](./wiki/Running-rules-on-objects.md)
50-
- [**Test JMESPath expression on given Event**](./wiki/Running-rules-on-objects.md#Test-JMESPath-expression-on-given-Event)
51-
- [**Test a list of rule sets on given list of events**](./wiki/Running-rules-on-objects.md#Test-a-list-of-rule-sets-on-given-list-of-events)
52-
- [**Authentication**](./wiki/Authentication.md)
53-
- [**Check if security is enabled**](./wiki/Authentication.md#Check-if-security-is-enabled)
54-
- [**Login point that returns the name of current user**](./wiki/Authentication.md#Login-point-that-returns-the-name-of-current-user)
55-
- [**Delete session of current user**](./wiki/Authentication.md#Delete-session-of-current-user)
56-
- [**Check if backend is running**](./wiki/Authentication.md#Check-if-backend-is-running)
57-
- [**Subscriptions**](./wiki/Subscription-API.md)
58-
- [**Create subscriptions**](./wiki/Subscription-API.md#Create-subscriptions)
59-
- [**Get subscriptions for the given names**](./wiki/Subscription-API.md#Get-subscriptions-for-the-given-names)
60-
- [**Update subscriptions**](./wiki/Subscription-API.md#Update-subscriptions)
61-
- [**Delete subscriptions for the given names**](./wiki/Subscription-API.md#Delete-subscriptions-for-the-given-names)
62-
- [**Get all subscriptions**](./wiki/Subscription-API.md#Get-all-subscriptions)
63-
- [**Download files**](./wiki/Download-Files.md)
64-
- [**List available files**](./wiki/Download-Files.md#List-available-files)
65-
- [**Download subscription template file**](./wiki/Download-Files.md#Download-subscription-template-file)
66-
- [**Download rules template file**](./wiki/Download-Files.md#Download-rules-template-file)
67-
- [**Download events template file**](./wiki/Download-Files.md#Download-events-template-file)
68-
1. [**Rules**](./wiki/Rules.md)
69-
- [**Introduction**](./wiki/Rules.md#Introduction)
70-
- [**Rule set up**](./wiki/Rules.md#Rule-set-up)
71-
- [**Existing rules files**](./wiki/Rules.md#Existing-rules-files)
72-
- [**MergeResolverRules**](./wiki/MergeResolverRules.md)
73-
- [**Example 1**](./wiki/MergeResolverRules.md#Example-1)
74-
- [**Example 2 - array aggregations**](./wiki/MergeResolverRules.md#Example-2---array-aggregations)
75-
- [**History Rules**](./wiki/History-rules.md)
76-
1. [**Subscriptions**](./wiki/Subscriptions.md)
77-
- [**REST POST notification**](./wiki/REST-POST-notification.md)
78-
- [**Email notification**](./wiki/Email-notification.md)
79-
1. [**Known limitations**](./wiki/Known-limitations.md)
80-
1. [**Step by Step Aggregation**](./wiki/Step-by-Step-Aggregation.md)
81-
- [**ArtifactCreatedEvent Aggregation**](./wiki/ArtifactCreatedEvent-aggregation.md)
82-
- [**EiffelTestCaseTriggeredEvent Aggregation**](./wiki/EiffelTestCaseTriggeredEvent-Aggregation.md)
83-
- [**EiffelTestCaseStartedEvent Aggregation**](./wiki/EiffelTestCaseStartedEvent-aggregation.md)
84-
- [**EiffelTestCaseFinishedEvent Aggregation**](./wiki/EiffelTestCaseFinishedEvent-aggregation.md)
85-
- [**EiffelArtifactPublishedEvent Aggregation**](./wiki/EiffelArtifactPublishedEvent-Aggregation.md)
86-
- [**EiffelConfidenceLevelModifiedEvent Aggregation**](./wiki/EiffelConfidenceLevelModifiedEvent-Aggregation.md)
87-
1. [**Step by Step Subscription Notification**](./wiki/Step-by-Step-Subscription-Notification.md)
39+
1. [**Configuration**](wiki/markdown/Configuration.md)
40+
1. [**Running Eiffel Intelligence**](wiki/markdown/Running-Eiffel-Intelligence.md)
41+
- [**Prerequisites**](wiki/markdown/Running-Eiffel-Intelligence.md#Prerequisites)
42+
1. [**REST API**](wiki/markdown/REST-API.md)
43+
- [**Query aggregated objects**](wiki/markdown/Query.md)
44+
- [**Perform query on created aggregated object**](wiki/markdown/Query.md#Perform-query-on-created-aggregated-object)
45+
- [**Perform freestyle query on created aggregated object**](wiki/markdown/Query.md#Perform-freestyle-query-on-created-aggregated-object)
46+
- [**Example of freestyle query that returns all aggregated objects**](wiki/markdown/Query.md#Example-of-freestyle-query-that-returns-all-aggregated-objects)
47+
- [**Query an aggregated object and filter it with specific key**](wiki/markdown/Query.md#Query-an-aggregated-object-and-filter-it-with-specific-key)
48+
- [**Query missed notifications**](wiki/markdown/Query.md#Query-missed-notifications)
49+
- [**Running rules on objects**](wiki/markdown/Running-rules-on-objects.md)
50+
- [**Test JMESPath expression on given Event**](wiki/markdown/Running-rules-on-objects.md#Test-JMESPath-expression-on-given-Event)
51+
- [**Test a list of rule sets on given list of events**](wiki/markdown/Running-rules-on-objects.md#Test-a-list-of-rule-sets-on-given-list-of-events)
52+
- [**Authentication**](wiki/markdown/Authentication.md)
53+
- [**Check if security is enabled**](wiki/markdown/Authentication.md#Check-if-security-is-enabled)
54+
- [**Login point that returns the name of current user**](wiki/markdown/Authentication.md#Login-point-that-returns-the-name-of-current-user)
55+
- [**Delete session of current user**](wiki/markdown/Authentication.md#Delete-session-of-current-user)
56+
- [**Check if backend is running**](wiki/markdown/Authentication.md#Check-if-backend-is-running)
57+
- [**Subscriptions**](wiki/markdown/Subscription-API.md)
58+
- [**Create subscriptions**](wiki/markdown/Subscription-API.md#Create-subscriptions)
59+
- [**Get subscriptions for the given names**](wiki/markdown/Subscription-API.md#Get-subscriptions-for-the-given-names)
60+
- [**Update subscriptions**](wiki/markdown/Subscription-API.md#Update-subscriptions)
61+
- [**Delete subscriptions for the given names**](wiki/markdown/Subscription-API.md#Delete-subscriptions-for-the-given-names)
62+
- [**Get all subscriptions**](wiki/markdown/Subscription-API.md#Get-all-subscriptions)
63+
- [**Download files**](wiki/markdown/Download-Files.md)
64+
- [**List available files**](wiki/markdown/Download-Files.md#List-available-files)
65+
- [**Download subscription template file**](wiki/markdown/Download-Files.md#Download-subscription-template-file)
66+
- [**Download rules template file**](wiki/markdown/Download-Files.md#Download-rules-template-file)
67+
- [**Download events template file**](wiki/markdown/Download-Files.md#Download-events-template-file)
68+
1. [**Rules**](wiki/markdown/Rules.md)
69+
- [**Introduction**](wiki/markdown/Rules.md#Introduction)
70+
- [**Rule set up**](wiki/markdown/Rules.md#Rule-set-up)
71+
- [**Existing rules files**](wiki/markdown/Rules.md#Existing-rules-files)
72+
- [**MergeResolverRules**](wiki/markdown/MergeResolverRules.md)
73+
- [**Example 1**](wiki/markdown/MergeResolverRules.md#Example-1)
74+
- [**Example 2 - array aggregations**](wiki/markdown/MergeResolverRules.md#Example-2---array-aggregations)
75+
- [**History Rules**](wiki/markdown/History-rules.md)
76+
1. [**Subscriptions**](wiki/markdown/Subscriptions.md)
77+
- [**REST POST notification**](wiki/markdown/REST-POST-notification.md)
78+
- [**Email notification**](wiki/markdown/Email-notification.md)
79+
1. [**Known limitations**](wiki/markdown/Known-limitations.md)
80+
1. [**Step by Step Aggregation**](wiki/markdown/Step-by-Step-Aggregation.md)
81+
- [**ArtifactCreatedEvent Aggregation**](wiki/markdown/ArtifactCreatedEvent-aggregation.md)
82+
- [**EiffelTestCaseTriggeredEvent Aggregation**](wiki/markdown/EiffelTestCaseTriggeredEvent-Aggregation.md)
83+
- [**EiffelTestCaseStartedEvent Aggregation**](wiki/markdown/EiffelTestCaseStartedEvent-aggregation.md)
84+
- [**EiffelTestCaseFinishedEvent Aggregation**](wiki/markdown/EiffelTestCaseFinishedEvent-aggregation.md)
85+
- [**EiffelArtifactPublishedEvent Aggregation**](wiki/markdown/EiffelArtifactPublishedEvent-Aggregation.md)
86+
- [**EiffelConfidenceLevelModifiedEvent Aggregation**](wiki/markdown/EiffelConfidenceLevelModifiedEvent-Aggregation.md)
87+
1. [**Step by Step Subscription Notification**](wiki/markdown/Step-by-Step-Subscription-Notification.md)
8888

8989

docs/_config.yml

Lines changed: 0 additions & 1 deletion
This file was deleted.

docs/index.md

Lines changed: 0 additions & 18 deletions
This file was deleted.

docs/rules.md

Lines changed: 0 additions & 1 deletion
This file was deleted.

docs/starting.md

Lines changed: 0 additions & 4 deletions
This file was deleted.

docs/subscriptions.md

Lines changed: 0 additions & 1 deletion
This file was deleted.

docs/under_hood.md

Lines changed: 0 additions & 7 deletions
This file was deleted.

pom.xml

Lines changed: 43 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,30 @@
2020
<output-relative-path>src/main/java</output-relative-path>
2121
<raml-path>src/main/resources/public/raml/instance_info.raml</raml-path>
2222
<raml-path>src/main/resources/public/raml/eiffel-intelligence.raml</raml-path>
23-
<base-package>com.ericsson.ei.controller</base-package>
23+
<base-package>com.ericsson.ei.controller</base-package>
2424
<skipTests>false</skipTests>
2525
<skipITs>${skipTests}</skipITs>
2626
<skipUnitTests>${skipTests}</skipUnitTests>
2727
</properties>
2828

29+
<!-- Reporting Plugins -->
30+
<reporting>
31+
<plugins>
32+
<plugin>
33+
<groupId>org.apache.maven.plugins</groupId>
34+
<artifactId>maven-project-info-reports-plugin</artifactId>
35+
<version>2.8</version>
36+
<reportSets><!-- only generating index, no other reports -->
37+
<reportSet>
38+
<reports>
39+
<report>index</report>
40+
</reports>
41+
</reportSet>
42+
</reportSets>
43+
</plugin>
44+
</plugins>
45+
</reporting>
46+
2947
<repositories>
3048
<repository>
3149
<id>jboss-public-repository-group</id>
@@ -156,7 +174,7 @@
156174
<groupId>commons-io</groupId>
157175
<artifactId>commons-io</artifactId>
158176
<version>2.6</version>
159-
</dependency>
177+
</dependency>
160178

161179
<!-- https://mvnrepository.com/artifact/org.json/json -->
162180
<dependency>
@@ -280,15 +298,15 @@
280298
<artifactId>spring-boot-maven-plugin</artifactId>
281299
</plugin>
282300

283-
<!-- PhoenixNAP RAML Code Generator plugin used to generate sources
301+
<!-- PhoenixNAP RAML Code Generator plugin used to generate sources
284302
from raml -->
285303
<plugin>
286304
<groupId>com.phoenixnap.oss</groupId>
287305
<artifactId>springmvc-raml-plugin</artifactId>
288306
<version>${springmvc-raml-version}</version>
289307
<configuration>
290308
<!-- path to raml file -->
291-
<ramlPath>${raml-path}</ramlPath>
309+
<ramlPath>${raml-path}</ramlPath>
292310
<!-- output of generated code -->
293311
<outputRelativePath>${output-relative-path}</outputRelativePath>
294312
<addTimestampFolder>false</addTimestampFolder>
@@ -354,7 +372,7 @@
354372
<version>2.20</version>
355373
<configuration>
356374
<forkCount>2C</forkCount>
357-
<reuseForks>false</reuseForks>
375+
<reuseForks>false</reuseForks>
358376
<skipTests>${skipUnitTests}</skipTests>
359377
<excludes>
360378
<exclude>${someModule.test.excludes}</exclude>
@@ -364,7 +382,7 @@
364382
</includes>
365383
</configuration>
366384
</plugin>
367-
385+
368386
<plugin>
369387
<groupId>org.apache.maven.plugins</groupId>
370388
<artifactId>maven-failsafe-plugin</artifactId>
@@ -407,6 +425,25 @@
407425
</configuration>
408426
</plugin>
409427

428+
<plugin>
429+
<groupId>org.apache.maven.plugins</groupId>
430+
<artifactId>maven-site-plugin</artifactId>
431+
<version>3.7.1</version>
432+
<configuration>
433+
<!-- This is where site.xml is located -->
434+
<siteDirectory>${basedir}/wiki</siteDirectory>
435+
<!-- Github pages only generates documentation from docs directory -->
436+
<outputDirectory>${basedir}/docs</outputDirectory>
437+
</configuration>
438+
<dependencies>
439+
<dependency>
440+
<groupId>org.apache.maven.doxia</groupId>
441+
<artifactId>doxia-module-markdown</artifactId>
442+
<version>1.8</version>
443+
</dependency>
444+
</dependencies>
445+
</plugin>
446+
410447
</plugins>
411448
</build>
412449
</project>

0 commit comments

Comments
 (0)