@antora/assembler 1.0.0-alpha.1 → 1.0.0-alpha.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -6,13 +6,15 @@ const selectMutableAttributes = require('./select-mutable-attributes')
6
6
 
7
7
  function produceAggregateDocuments (loadAsciiDoc, contentCatalog, assemblerConfig) {
8
8
  const { insertStartPage, rootLevel, sectionMergeStrategy, asciidoc: assemblerAsciiDocConfig } = assemblerConfig
9
+ const assemblerAsciiDocAttributes = Object.assign({}, assemblerAsciiDocConfig.attributes)
10
+ delete assemblerAsciiDocAttributes['source-highlighter'] // only used at convert time
9
11
  return filterComponentVersions(contentCatalog.getComponents(), assemblerConfig.componentVersions).reduce(
10
12
  (accum, componentVersion) => {
11
13
  const { name: componentName, version, title, navigation } = componentVersion
12
14
  if (!navigation) return accum
13
15
  const componentVersionAsciiDocConfig = getAsciiDocConfigWithAsciidoctorReducerExtension(componentVersion)
14
16
  const mergedAsciiDocConfig = Object.assign({}, componentVersionAsciiDocConfig, {
15
- attributes: Object.assign({}, componentVersionAsciiDocConfig.attributes, assemblerAsciiDocConfig.attributes),
17
+ attributes: Object.assign({}, componentVersionAsciiDocConfig.attributes, assemblerAsciiDocAttributes),
16
18
  })
17
19
  const rootEntry = { content: title }
18
20
  const startPage = contentCatalog.getComponentVersionStartPage(componentName, version)
@@ -60,6 +62,7 @@ function getAsciiDocConfigWithAsciidoctorReducerExtension (componentVersion) {
60
62
  },
61
63
  [asciidoctorReducerExtension]
62
64
  ),
65
+ sourcemap: true,
63
66
  })
64
67
  }
65
68
  return Object.assign({}, asciidocConfig, { extensions: [asciidoctorReducerExtension], sourcemap: true })
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@antora/assembler",
3
- "version": "1.0.0-alpha.1",
3
+ "version": "1.0.0-alpha.2",
4
4
  "description": "An extension library for Antora that assembles content from multiple pages into a single AsciiDoc file to converted and publish.",
5
5
  "license": "MPL-2.0",
6
6
  "author": "OpenDevise Inc. (https://opendevise.com)",