Closed jenswet closed 2 years ago
Also interested in the asciidoc output format (by only giving the xml folder as source)
The next version of AsciiDoxy will already get rid of the fragments folder.
The next version of AsciiDoxy will support --backend adoc
to skip running AsciiDoctor and instead copy the generated AsciiDoc files to the output directory.
Hello!
I am currently using asciidoxy for a university project. We don't have the possibility to host an API reference as html page somewhere. We can only publish it to the Gitlab Wiki. While looking for a way to convert Doxygen to Markdown or Asciidoc I found your project. It's great to fit most of our usecase.
Currently we take the
.asciidoxy.XXX.adoc
files from the intermediate folder and publish them to Gitlab. With a few hacks that works quite well.We do the following:
source_file = ARGV[0] if !source_file warn 'You must provide a source file' exit 1 end output_file = source_file.sub(/.adoc$/, '-preprocessed.adoc') source = File.read source_file doc = Asciidoctor.load_file ARGV[0], :safe => :unsafe, :parse_header_only => true reader = Asciidoctor::PreprocessorReader.new doc, source preprocessed_source = reader.read.gsub(/^include::/, '\include::') File.open(output_file, 'w') {|f| f.write preprocessed_source }