Skip to content
Permalink
Browse files

Moved sample pages from the Architecture to a seperate project.

  • Loading branch information
ab9975 committed Sep 3, 2020
1 parent 8f64cda commit 06b4ef20e31a93848198109bc78d9ad723c7854f
Showing with 8,306 additions and 1 deletion.
  1. +44 −0 .editorconfig
  2. +34 −0 .gitignore
  3. +8 −0 .vscode/settings.json
  4. +10 −1 README.md
  5. +72 −0 antora-playbook.yml
  6. +84 −0 build.gradle
  7. +139 −0 buildSrc/src/main/java/uk/ac/coventry/gradle/Project.java
  8. +70 −0 buildSrc/src/main/java/uk/ac/coventry/gradle/Version.java
  9. +25 −0 buildSrc/src/main/java/uk/ac/coventry/gradle/package-info.java
  10. +30 −0 docker-antora-custom/Dockerfile
  11. +42 −0 docker-antora-custom/docker-antora-custom.gradle
  12. +35 −0 gradle.properties
  13. BIN gradle/wrapper/gradle-wrapper.jar
  14. +5 −0 gradle/wrapper/gradle-wrapper.properties
  15. +185 −0 gradlew
  16. +89 −0 gradlew.bat
  17. +202 −0 licence/LICENSE.txt
  18. +19 −0 licence/NOTICE.txt
  19. BIN resources/fonts/Calibri-Bold.ttf
  20. BIN resources/fonts/Calibri-BoldItalic.ttf
  21. BIN resources/fonts/Calibri-Italic.ttf
  22. BIN resources/fonts/Calibri-Regular.ttf
  23. BIN resources/fonts/NotoSerif-Bold.ttf
  24. BIN resources/fonts/NotoSerif-BoldItalic.ttf
  25. BIN resources/fonts/NotoSerif-Italic.ttf
  26. BIN resources/fonts/NotoSerif-Regular.ttf
  27. BIN resources/fonts/mplus1mn-bold-ascii.ttf
  28. BIN resources/fonts/mplus1mn-bold_italic-ascii.ttf
  29. BIN resources/fonts/mplus1mn-italic-ascii.ttf
  30. BIN resources/fonts/mplus1mn-regular-ascii-conums.ttf
  31. BIN resources/fonts/mplus1p-regular-fallback.ttf
  32. BIN resources/images/coventry-night-landscape.png
  33. BIN resources/images/cu-awards-banner.png
  34. BIN resources/images/cu-logo-quarter-crop.png
  35. BIN resources/images/cu-logo-white.png
  36. BIN resources/images/cu-logo.png
  37. BIN resources/templates/archi/Wardley mapping canvas rev1.archicanvas
  38. +1 −0 resources/templates/drawio/BaseTemplate.drawio
  39. +1 −0 resources/templates/drawio/WardleyMapTemplate.drawio
  40. +1 −0 resources/templates/drawio/WardleyMapTemplate.xml
  41. +1 −0 resources/templates/drawio/WardleyMapTemplates.xml
  42. BIN resources/templates/visio/BaseTemplate.vsdx
  43. BIN resources/templates/visio/RoadmapTemplate.vsdx
  44. +44 −0 resources/themes/archi/ArchiMasteringArchiMateColours.prefs
  45. BIN resources/themes/docx/architecture-pandoc-reference.docx
  46. +284 −0 resources/themes/pdf/architecture-pdf-theme.yml
  47. BIN resources/themes/pdf/images/cu-footer.png
  48. BIN resources/themes/pdf/images/cu-logo.jpg
  49. BIN resources/themes/pdf/images/cu-title-page-background.png
  50. BIN resources/themes/pptx/architecture-pandoc-reference.pptx
  51. +43 −0 settings.gradle
  52. +35 −0 src/docs/antora/antora.yml
  53. +42 −0 src/docs/antora/modules/ROOT/nav.adoc
  54. +16 −0 src/docs/antora/modules/ROOT/pages/act_diagram.adoc
  55. +15 −0 src/docs/antora/modules/ROOT/pages/block_diagram.adoc
  56. +155 −0 src/docs/antora/modules/ROOT/pages/bpmn_diagram.adoc
  57. +107 −0 src/docs/antora/modules/ROOT/pages/bytefield_diagram.adoc
  58. +154 −0 src/docs/antora/modules/ROOT/pages/c4plantuml_diagram.adoc
  59. +148 −0 src/docs/antora/modules/ROOT/pages/diagram.bpmn
  60. +101 −0 src/docs/antora/modules/ROOT/pages/ditaa_diagram.adoc
  61. +128 −0 src/docs/antora/modules/ROOT/pages/erd.adoc
  62. +15 −0 src/docs/antora/modules/ROOT/pages/graphviz_diagram.adoc
  63. +145 −0 src/docs/antora/modules/ROOT/pages/index.adoc
  64. +28 −0 src/docs/antora/modules/ROOT/pages/mermaid_diagram.adoc
  65. +42 −0 src/docs/antora/modules/ROOT/pages/nomnoml_diagram.adoc
  66. +55 −0 src/docs/antora/modules/ROOT/pages/nwdiag_diagram.adoc
  67. +31 −0 src/docs/antora/modules/ROOT/pages/packetdiag_diagram.adoc
  68. +43 −0 src/docs/antora/modules/ROOT/pages/plantuml_diagram.adoc
  69. +21 −0 src/docs/antora/modules/ROOT/pages/rackdiag_diagram.adoc
  70. +15 −0 src/docs/antora/modules/ROOT/pages/seqdiag_diagram.adoc
  71. +485 −0 src/docs/antora/modules/ROOT/pages/svgbob_diagram.adoc
  72. BIN src/ui/antora-supplemental/android-chrome-192x192.png
  73. BIN src/ui/antora-supplemental/android-chrome-512x512.png
  74. BIN src/ui/antora-supplemental/apple-touch-icon.png
  75. +66 −0 src/ui/antora-supplemental/css/cu-extra.css
  76. +646 −0 src/ui/antora-supplemental/css/doc.css
  77. +279 −0 src/ui/antora-supplemental/css/header.css
  78. +115 −0 src/ui/antora-supplemental/css/search.css
  79. +146 −0 src/ui/antora-supplemental/css/vars.css
  80. BIN src/ui/antora-supplemental/favicon-16x16.png
  81. BIN src/ui/antora-supplemental/favicon-32x32.png
  82. BIN src/ui/antora-supplemental/favicon.ico
  83. +8 −0 src/ui/antora-supplemental/img/admonition/caution.svg
  84. +8 −0 src/ui/antora-supplemental/img/admonition/important.svg
  85. +8 −0 src/ui/antora-supplemental/img/admonition/note.svg
  86. +8 −0 src/ui/antora-supplemental/img/admonition/tip.svg
  87. +8 −0 src/ui/antora-supplemental/img/admonition/warning.svg
  88. BIN src/ui/antora-supplemental/img/logo/cu-logo-white-small.png
  89. BIN src/ui/antora-supplemental/img/logo/cu-logo-white.png
  90. +3,475 −0 src/ui/antora-supplemental/js/vendor/lunr.js
  91. +215 −0 src/ui/antora-supplemental/js/vendor/search.js
  92. +5 −0 src/ui/antora-supplemental/partials/footer-content.hbs
  93. +7 −0 src/ui/antora-supplemental/partials/footer-scripts.hbs
  94. +10 −0 src/ui/antora-supplemental/partials/head-meta.hbs
  95. +36 −0 src/ui/antora-supplemental/partials/header-content.hbs
  96. +15 −0 src/ui/antora-supplemental/partials/toolbar.hbs
  97. +1 −0 src/ui/antora-supplemental/site.webmanifest
  98. +1 −0 temp/archi_exports
@@ -0,0 +1,44 @@
###############################################################################
#
# Copyright 2018-2020 Coventry University Higher Education Corporation.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
###############################################################################

###############################################################################
# .editorconfig - shared editor configuration; see https://editorconfig.org
###############################################################################

# Top-most EditorConfig file
root = true

################### Global Settings

[*]
# Unix-style newlines with a newline ending every file
end_of_line = lf
insert_final_newline = true
# Set default charset
charset = utf-8
# 4 space indentation
indent_style = space
indent_size = 4
# Remove trailing whitespace
trim_trailing_whitespace = true

################### File Specific Settings

[*.{json,yaml,yml}]
indent_size = 2

@@ -0,0 +1,34 @@
###############################################################################
#
# Copyright 2018-2020 Coventry University Higher Education Corporation.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
###############################################################################

###############################################################################
# Git ignore file. This files excludes file patterns from version control in
# the git repository. Typically, these are things such as build directories
# from Gradle etc.
#
# It is combined with the user's own gitignore file for an overall list.
#
# This should be placed in the root directory of the project.
###############################################################################

# Gradle
.gradle
build/

# Kroki! diagram files
diag-*.svg
@@ -0,0 +1,8 @@
{
"cSpell.words": [
"adoc",
"antora",
"roadmap",
"roadmaps"
]
}
@@ -1 +1,10 @@
# antora_demo
# antora_demo

This is a demonstration of Antora. Please feel free to edit or expand.

Build using:

./gradlew antoraBuild

Generated documents will be under build/site

@@ -0,0 +1,72 @@
###############################################################################
#
# Copyright 2018-2020 Coventry University Higher Education Corporation.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
###############################################################################

###############################################################################
# antora-playbook.yml - playbook for the antora site generator.
###############################################################################

################### Document Start

---

################### Site Configuration

site:
title: Antora Demo
url: https://antorademo.coventry.ac.uk/
start_page: antora_demo::index.adoc
robots: disallow

################### Content Configuration

content:
edit_url: false
sources:
- url: .
branches: HEAD
start_path: src/docs/antora

################### AsciiDoc Configuration

asciidoc:
attributes:
kroki-fetch-diagram: true
page-pagination: true
site-title: 'Antora Demo'
extensions:
- asciidoctor-kroki

################### UI Configuration

ui:
bundle:
url: https://gitlab.com/antora/antora-ui-default/-/jobs/artifacts/master/raw/build/ui-bundle.zip?job=bundle-stable
snapshot: true
supplemental_files: './src/ui/antora-supplemental'

################### Output Configuration

output:
clean: true
destinations:
- provider: fs

################### Runtime Configuration

runtime:
fetch: true
@@ -0,0 +1,84 @@
/*
******************************************************************************
* Copyright 2018-2020 Coventry University Higher Education Corporation.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
******************************************************************************
*/

///////////////////////////////////////////////////////////////////////////////
// Gradle build configuration for the root project.
///////////////////////////////////////////////////////////////////////////////

/////////////////// Imports

import org.ajoberstar.grgit.Grgit
import org.apache.tools.ant.taskdefs.condition.Os

import uk.ac.coventry.gradle.Project
import uk.ac.coventry.gradle.Version

/////////////////// Plugins

buildscript {
repositories {
jcenter()
}
}
plugins {
id("org.ajoberstar.grgit") version "${grgitPlugin}"
}

/////////////////// Properties

description = "Architecture Root Project"

/////////////////// Wrapper

wrapper {
gradleVersion = "6.6.1"
}

/////////////////// Configuration

// Build configuration for all projects, including root
allprojects { proj ->
repositories {
mavenLocal()
jcenter()
}

/* Project configuration */
Project projMeta = Project.newInstance(proj.name).orElseThrow { new IllegalArgumentException("Unknown project: [${proj.name}]") }
proj.with {
group = projMeta.group()
version = projMeta.version()
}
}

/////////////////// Tasks

// Antora build for the web site
task antoraBuild(type:Exec) {
if (Os.isFamily(Os.FAMILY_WINDOWS)) {
executable = "cmd"
args = ["/c", "docker"]
} else {
executable = "docker"
}
args("run")
args("--volume=${rootDir}:/antora:Z", "--rm", "--tty")
args("-e", "DOCSEARCH_ENABLED=true", "-e", "DOCSEARCH_ENGINE=lunr")
args("${dockerAntoraTag}", "--generator", "antora-site-generator-lunr", "antora-playbook.yml")
}
antoraBuild.dependsOn ":" + Project.DOCKER_ANTORA_CUSTOM.project + ":dockerBuild"

0 comments on commit 06b4ef2

Please sign in to comment.
You can’t perform that action at this time.