Skip to content
This repository was archived by the owner on Sep 27, 2024. It is now read-only.

Commit 6cc0c03

Browse files
authored
Merge pull request #200 from jan-cerny/asciidoc
Use AsciiDoc instead of Asciidoctor
2 parents b4dc8c6 + bd356e0 commit 6cc0c03

File tree

7 files changed

+14
-89
lines changed

7 files changed

+14
-89
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ before_install:
1111
- brew update
1212
- brew install jq
1313
- brew install cartr/qt4/qt@4
14-
- brew install asciidoctor
14+
- brew install asciidoc
1515

1616
before_script:
1717
- git clone --depth 1 https://github.com/openscap/openscap.git -b master

CMakeLists.txt

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -89,15 +89,15 @@ if (SCAP_AS_RPM_EXECUTABLE)
8989
endif()
9090

9191
# This is optional, only required if user wants documentation rebuilt
92-
find_program(ASCIIDOCTOR_EXECUTABLE NAMES asciidoctor)
93-
option(SCAP_WORKBENCH_REBUILD_MANUAL "If enabled, user manual will be rebuilt (requires asciidoctor to be installed)" TRUE)
92+
find_program(ASCIIDOC_EXECUTABLE NAMES asciidoc)
93+
option(SCAP_WORKBENCH_REBUILD_MANUAL "If enabled, user manual will be rebuilt (requires asciidoc to be installed)" TRUE)
9494
option(SCAP_WORKBENCH_USE_NATIVE_FILE_DIALOGS "If enabled, native desktop environment file dialogs are used (disable if you have crashes at startup)" TRUE)
95-
if (SCAP_WORKBENCH_REBUILD_MANUAL AND NOT ASCIIDOCTOR_EXECUTABLE)
96-
message("asciidoctor has not been found, user manual won't be rebuilt even though SCAP_WORKBENCH_REBUILD_MANUAL has been enabled.")
95+
if (SCAP_WORKBENCH_REBUILD_MANUAL AND NOT ASCIIDOC_EXECUTABLE)
96+
message("asciidoc has not been found, user manual won't be rebuilt even though SCAP_WORKBENCH_REBUILD_MANUAL has been enabled.")
9797
endif()
9898
if (NOT EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/doc/user_manual.html")
99-
if (NOT ASCIIDOCTOR_EXECUTABLE)
100-
message(FATAL_ERROR "You seem to be using scap-workbench from the repository ('${CMAKE_SOURCE_DIR}/doc/user_manual.html' hasn't been found). Please install asciidoctor to build the manual! You can use `gem install asciidoctor` if asciidoctor is not in your distribution package repository. If you don't have access to asciidoctor and don't mind not having a manual, run `touch ${CMAKE_SOURCE_DIR}/doc/user_manual.html` and rerun cmake.")
99+
if (NOT ASCIIDOC_EXECUTABLE)
100+
message(FATAL_ERROR "You seem to be using scap-workbench from the repository ('${CMAKE_SOURCE_DIR}/doc/user_manual.html' hasn't been found). Please install asciidoc to build the manual! If you don't have access to asciidoc and don't mind not having a manual, run `touch ${CMAKE_SOURCE_DIR}/doc/user_manual.html` and rerun cmake.")
101101
endif()
102102
set(SCAP_WORKBENCH_REBUILD_MANUAL TRUE)
103103
endif()
@@ -269,12 +269,12 @@ install(FILES "share/pixmaps/scap-workbench.svg"
269269
install(FILES "scap-workbench.appdata.xml"
270270
DESTINATION "${CMAKE_INSTALL_DATADIR}/appdata")
271271

272-
if (ASCIIDOCTOR_EXECUTABLE)
272+
if (ASCIIDOC_EXECUTABLE)
273273
file(GLOB USER_MANUAL_SCREENSHOTS "${CMAKE_CURRENT_SOURCE_DIR}/doc/user_manual/*.png")
274274
add_custom_command(
275275
OUTPUT doc/user_manual.html
276276
COMMAND ${CMAKE_COMMAND} -E make_directory ${CMAKE_CURRENT_BINARY_DIR}/doc
277-
COMMAND ${ASCIIDOCTOR_EXECUTABLE} --destination-dir ${CMAKE_CURRENT_BINARY_DIR}/doc -b html5 -a data-uri user_manual.adoc
277+
COMMAND ${ASCIIDOC_EXECUTABLE} -o ${CMAKE_CURRENT_BINARY_DIR}/doc/user_manual.html -b html5 -a data-uri user_manual.adoc
278278
COMMAND ${CMAKE_COMMAND} -E copy ${CMAKE_CURRENT_BINARY_DIR}/doc/user_manual.html ${CMAKE_CURRENT_SOURCE_DIR}/doc/user_manual.html
279279
DEPENDS doc/user_manual.adoc ${USER_MANUAL_SCREENSHOTS}
280280
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/doc

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ required dependencies:
2424

2525
required dependencies (only for the git repo, not required for released tarballs):
2626
```console
27-
# yum install rubygem-asciidoctor
27+
# yum install asciidoc
2828
```
2929

3030
optional dependencies:

doc/user_manual.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
:imagesdir: ./user_manual
33
:toc:
44

5-
image::logo.svg[align="center"]
5+
image::logo.png[align="center"]
66

77
SCAP Workbench is a tool that can open XCCDF footnote:[The Extensible
88
Configuration Checklist Description Format] or SDS footnote:[Source

doc/user_manual/logo.png

16.7 KB
Loading

doc/user_manual/logo.svg

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

scap-workbench.wxs.in

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -142,8 +142,8 @@
142142
<Component Id="INTRO_SCREENSHOT.PNG" DiskId="1" Guid="D73F334F-EEC2-4C30-A440-7EDFC26D8897">
143143
<File Id="INTRO_SCREENSHOT.PNG" Name="intro_screenshot.png" Source="scap-workbench\doc\user_manual\intro_screenshot.png" />
144144
</Component>
145-
<Component Id="LOGO.SVG" DiskId="1" Guid="DE026BBD-9241-4004-A2EC-7A9F459C8049">
146-
<File Id="LOGO.SVG" Name="logo.svg" Source="scap-workbench\doc\user_manual\logo.svg" />
145+
<Component Id="LOGO.PNG" DiskId="1" Guid="DE026BBD-9241-4004-A2EC-7A9F459C8049">
146+
<File Id="LOGO.PNG" Name="logo.png" Source="scap-workbench\doc\user_manual\logo.png" />
147147
</Component>
148148
<Component Id="OPENING_TAILORING_FILE.PNG" DiskId="1" Guid="EFB14DFD-697F-4314-8476-E798EA1A1E93">
149149
<File Id="OPENING_TAILORING_FILE.PNG" Name="opening_tailoring_file.png" Source="scap-workbench\doc\user_manual\opening_tailoring_file.png" />
@@ -342,7 +342,7 @@
342342
<ComponentRef Id="CUSTOMIZING_SSG_PROFILE.PNG" />
343343
<ComponentRef Id="DEFAULT_CONTENT_OPENED.PNG" />
344344
<ComponentRef Id="INTRO_SCREENSHOT.PNG" />
345-
<ComponentRef Id="LOGO.SVG" />
345+
<ComponentRef Id="LOGO.PNG" />
346346
<ComponentRef Id="OPENING_TAILORING_FILE.PNG" />
347347
<ComponentRef Id="SAVE_AS_RPM_DIALOG.PNG" />
348348
<ComponentRef Id="SCANNING_REMOTE_MACHINE.PNG" />

0 commit comments

Comments
 (0)