From e92c0b2d201b7707bd879deb174f60a400e9a7fa Mon Sep 17 00:00:00 2001 From: Gunnar Beutner Date: Fri, 11 Oct 2013 09:40:51 +0200 Subject: [PATCH] Make documentation files installable. --- configure.ac | 2 ++ doc/.gitignore | 3 +-- doc/9-vagrant-demo-vm.md | 21 +++++++++++++++++++++ doc/Makefile.am | 23 ++++++++++++++++++++--- doc/strapdownjs/Makefile.am | 8 ++++++++ doc/strapdownjs/themes/Makefile.am | 7 +++++++ icinga2.spec.in | 2 +- 7 files changed, 60 insertions(+), 6 deletions(-) create mode 100644 doc/9-vagrant-demo-vm.md create mode 100644 doc/strapdownjs/Makefile.am create mode 100644 doc/strapdownjs/themes/Makefile.am diff --git a/configure.ac b/configure.ac index eb4acbcac..82e51814e 100644 --- a/configure.ac +++ b/configure.ac @@ -172,6 +172,8 @@ components/livestatus/Makefile components/notification/Makefile doc/Doxyfile doc/Makefile +doc/strapdownjs/Makefile +doc/strapdownjs/themes/Makefile etc/Makefile etc/icinga/Makefile etc/icinga2/Makefile diff --git a/doc/.gitignore b/doc/.gitignore index 1dce93ba6..55924dadc 100644 --- a/doc/.gitignore +++ b/doc/.gitignore @@ -1,5 +1,4 @@ Doxyfile -icinga2.html -icinga2-*.html icinga2.8 .directory +index.html diff --git a/doc/9-vagrant-demo-vm.md b/doc/9-vagrant-demo-vm.md new file mode 100644 index 000000000..550168aa2 --- /dev/null +++ b/doc/9-vagrant-demo-vm.md @@ -0,0 +1,21 @@ +# Vagrant Demo VM + +The Icinga 2 Git repository contains support for Vagrant. In order to build the +Vagrant VM first you will have to check out the Git repository: + + $ git clone git://git.icinga.org/icinga2.git + +Once you have checked out the Git repository you can build the VM using the +following command: + + $ vagrant up + +The Vagrant VM is based on CentOS 6.4 and uses the official Icinga 2 RPM +packages from `packages.icinga.org`. + +In addition to installing Icinga 2 the Vagrant script also installs the Icinga +1.x Classic UI and the check plugins that are available from the Nagios Plugins +project. + +The Classic UI is available at [http://localhost:8080/icinga](http://localhost:8080/icinga). +By default both the username and password are `icingaadmin`. \ No newline at end of file diff --git a/doc/Makefile.am b/doc/Makefile.am index 61255f3c1..11f09fe2c 100644 --- a/doc/Makefile.am +++ b/doc/Makefile.am @@ -1,6 +1,7 @@ -.PHONY: clean +SUBDIRS = \ + strapdownjs -EXTRA_DIST = \ +MARKDOWN_FILES = \ 1-about.md \ 2.0-getting-started.md \ 2.1-setting-up-icinga-2.md \ @@ -32,10 +33,26 @@ EXTRA_DIST = \ 6-advanced-topics.md \ 7-migrating-from-icinga-1x.md \ 8-differences-between-icinga-1x-and-2.md \ + 9-vagrant-demo-vm.md + +EXTRA_DIST = \ + $(MARKDOWN_FILES) \ icinga2.8 +CLEANFILES = \ + index.html + icinga2docdir = ${docdir} -icinga2doc_DATA = +icinga2doc_DATA = \ + index.html \ + jquery.min.js \ + jquery.toc.min.js \ + toc.css \ + toc-margin.css \ + toc-print.css + +index.html: $(MARKDOWN_FILES) + ./mkdoc.sh > $@.tmp && mv $@.tmp $@ man8_MANS = \ icinga2.8 diff --git a/doc/strapdownjs/Makefile.am b/doc/strapdownjs/Makefile.am new file mode 100644 index 000000000..2b8e89546 --- /dev/null +++ b/doc/strapdownjs/Makefile.am @@ -0,0 +1,8 @@ +SUBDIRS = \ + themes + +icinga2docdir = ${docdir}/strapdownjs +icinga2doc_DATA = \ + strapdown.js \ + strapdown.css + diff --git a/doc/strapdownjs/themes/Makefile.am b/doc/strapdownjs/themes/Makefile.am new file mode 100644 index 000000000..4a37c7ace --- /dev/null +++ b/doc/strapdownjs/themes/Makefile.am @@ -0,0 +1,7 @@ +icinga2docdir = ${docdir}/strapdownjs/themes +icinga2doc_DATA = \ + bootstrap.min.css \ + bootstrap-responsive.min.css \ + cerulean.min.css \ + LICENSE + diff --git a/icinga2.spec.in b/icinga2.spec.in index bfd2a09fd..d45fc43c0 100644 --- a/icinga2.spec.in +++ b/icinga2.spec.in @@ -203,7 +203,6 @@ fi %files %defattr(-,root,root) -%doc README AUTHORS ChangeLog COPYING COPYING.Exceptions %attr(755,-,-) %{_sysconfdir}/init.d/%{name} %attr(0750,%{icinga_user},%{icinga_group}) %dir %{_sysconfdir}/%{name}/conf.d %attr(0750,%{icinga_user},%{icinga_group}) %dir %{_sysconfdir}/%{name}/features-available @@ -239,6 +238,7 @@ fi %files doc %doc README AUTHORS ChangeLog COPYING COPYING.Exceptions +%doc %{_datadir}/doc/%{name} %files ido-mysql %{_libdir}/%{name}/libdb_ido_mysql* -- 2.40.0