Fix links in index.md

This commit is contained in:
Blerim Sheqa 2017-10-20 12:47:21 +02:00
parent f11f4ce64c
commit 8f80bb92c1
2 changed files with 3 additions and 12 deletions

View File

@ -85,7 +85,7 @@ main_pages = build_page_index(full_docs_dir, config['project']['docs_dir'])
index_file = "#{clone_target}/index.md"
FileUtils.cp("#{clone_target}/#{main_pages[0].values[0]}", index_file)
index_content = File.read(index_file)
index_new_content = index_content.gsub(/\(\.\./, '(')
index_new_content = index_content.gsub(/\((.*\.md.*)\)/, "(#{config['project']['docs_dir']}/\\1)")
File.open(index_file, "w") {|file| file.puts index_new_content }
mkdocs['pages'].push('' => "index.md")

View File

@ -4,24 +4,15 @@ source_dir: 'www/source'
site_dir: 'www/html'
project:
git: 'https://github.com/Icinga/icingaweb2.git'
ref: 'support/v2.4'
ref: 'master'
target: 'icingaweb2'
docs_dir: 'doc'
latest: true
subcategories:
Built in Modules:
Monitoring:
git: 'https://github.com/Icinga/icingaweb2.git'
ref: 'support/v2.4'
target: 'icingaweb2'
docs_dir: 'modules/monitoring/doc'
Doc:
git: 'https://github.com/Icinga/icingaweb2.git'
ref: 'support/v2.4'
target: 'icingaweb2'
docs_dir: 'modules/doc/doc'
Translation:
git: 'https://github.com/Icinga/icingaweb2.git'
ref: 'support/v2.4'
target: 'icingaweb2'
docs_dir: 'modules/translation/doc'
docs_dir: 'modules/translation/doc'