Skip to content

Commit

Permalink
Merge origin/master into master
Browse files Browse the repository at this point in the history
  • Loading branch information
Nick Waddington committed Jan 3, 2019
2 parents 8ff7389 + 7198cdc commit 2a36a0f
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions config.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
require 'govuk_tech_docs'
require 'govuk_tech_docs/table_of_contents/heading'
require 'govuk_tech_docs/table_of_contents/headings_builder'
require 'govuk_tech_docs/tech_docs_html_renderer'

configure :build do
base_path = ENV['BASE_PATH'] || '/' # Note: please ensure BASE_PATH ends with a trailing '/'
Expand Down Expand Up @@ -49,3 +50,14 @@ def href
end

GovukTechDocs.configure(self)

set :markdown,
renderer: GovukTechDocs::TechDocsHTMLRenderer.new(
with_toc_data: true,
api: true,
link_attributes: { rel: 'noopener noreferrer' },
context: self
),
fenced_code_blocks: true,
tables: true,
no_intra_emphasis: true

0 comments on commit 2a36a0f

Please sign in to comment.