Fix links in index.md
This commit is contained in:
parent
f11f4ce64c
commit
8f80bb92c1
|
@ -85,7 +85,7 @@ main_pages = build_page_index(full_docs_dir, config['project']['docs_dir'])
|
||||||
index_file = "#{clone_target}/index.md"
|
index_file = "#{clone_target}/index.md"
|
||||||
FileUtils.cp("#{clone_target}/#{main_pages[0].values[0]}", index_file)
|
FileUtils.cp("#{clone_target}/#{main_pages[0].values[0]}", index_file)
|
||||||
index_content = File.read(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 }
|
File.open(index_file, "w") {|file| file.puts index_new_content }
|
||||||
mkdocs['pages'].push('' => "index.md")
|
mkdocs['pages'].push('' => "index.md")
|
||||||
|
|
||||||
|
|
|
@ -4,24 +4,15 @@ source_dir: 'www/source'
|
||||||
site_dir: 'www/html'
|
site_dir: 'www/html'
|
||||||
project:
|
project:
|
||||||
git: 'https://github.com/Icinga/icingaweb2.git'
|
git: 'https://github.com/Icinga/icingaweb2.git'
|
||||||
ref: 'support/v2.4'
|
ref: 'master'
|
||||||
target: 'icingaweb2'
|
target: 'icingaweb2'
|
||||||
docs_dir: 'doc'
|
docs_dir: 'doc'
|
||||||
latest: true
|
latest: true
|
||||||
subcategories:
|
subcategories:
|
||||||
Built in Modules:
|
Built in Modules:
|
||||||
Monitoring:
|
Monitoring:
|
||||||
git: 'https://github.com/Icinga/icingaweb2.git'
|
|
||||||
ref: 'support/v2.4'
|
|
||||||
target: 'icingaweb2'
|
|
||||||
docs_dir: 'modules/monitoring/doc'
|
docs_dir: 'modules/monitoring/doc'
|
||||||
Doc:
|
Doc:
|
||||||
git: 'https://github.com/Icinga/icingaweb2.git'
|
|
||||||
ref: 'support/v2.4'
|
|
||||||
target: 'icingaweb2'
|
|
||||||
docs_dir: 'modules/doc/doc'
|
docs_dir: 'modules/doc/doc'
|
||||||
Translation:
|
Translation:
|
||||||
git: 'https://github.com/Icinga/icingaweb2.git'
|
|
||||||
ref: 'support/v2.4'
|
|
||||||
target: 'icingaweb2'
|
|
||||||
docs_dir: 'modules/translation/doc'
|
docs_dir: 'modules/translation/doc'
|
Loading…
Reference in New Issue