Skip to content

Update on AsciiDoc export, direct viewing option#275

Merged
juileetikekar merged 1 commit intomainfrom
MIHO/FixAsciiDocView
Mar 7, 2025
Merged

Update on AsciiDoc export, direct viewing option#275
juileetikekar merged 1 commit intomainfrom
MIHO/FixAsciiDocView

Conversation

@MichaelHoffmeisterFesto
Copy link
Contributor

** Ready to be merged with main branch. **

This quick fix enables the AasxPluginExportTable plugin to directly view AsciiDoc.
To enable this, the "Export HTML" and "View Results" options need to be ticked.

Additionally, the AasxPluginExportTable.options.json need to be configured as this:

"SmtExportHtmlCmd": "docker",
"SmtExportHtmlArgs": "run -it -v %WD%:/documents/ asciidoctor/docker-asciidoctor asciidoctor -r asciidoctor-diagram -a stylesheet=asciidoc-style-idta.css %ADOC%",
"SmtExportViewCmd": "cmd.exe",
"SmtExportViewArgs": "/c start %WD%\\%HTML% && ping 127.0.0.1 -n 5 >nul",

This comes in very handy, especially when called from a keyboard shortcut from AasxPackageExplorer.options.json:

"ScriptPresets": [
  [..]
  {
    "Name": "AsciiDoc - Just export (Ctrl+Shift+7)",
    "Lines": [
      "Tool(\"LocationPush\");",
      "Select(\"Submodel\", \"First\");",
      "Select(\"Submodel\", \"Next\");",
      "Tool(\"ExportSmtAsciiDoc\", \"File\", \"C:\\Users\\Micha\\Desktop\\tmp\\new.zip\");",
      "Tool(\"LocationPop\");"
    ]
  },
  {
    "Name": "AsciiDoc - Export and view  (Ctrl+Shift+8)",
    "Lines": [
      "Tool(\"LocationPush\");",
      "Select(\"Submodel\", \"First\");",
      "Select(\"Submodel\", \"Next\");",
      "Tool(\"ExportSmtAsciiDoc\", \"File\", \"C:\\Users\\Micha\\Desktop\\tmp\\new.zip\", \"ExportHtml\", \"true\", \"ExportPdf\", \"false\", \"AntoraStyle\", \"false\", \"ViewResult\", \"true\");",
      "Tool(\"LocationPop\");"
    ]
  }
]

   to view (rendered) results
@juileetikekar juileetikekar changed the title AsciiDoc export, direct viewing option Update on AsciiDoc export, direct viewing option Mar 7, 2025
@juileetikekar juileetikekar merged commit fcc66f7 into main Mar 7, 2025
4 of 7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants