Comments (4)
Asciidoctor v2.0.12 is supported as of commit 07a4da5. The changes are included in the v0.0.2 release.
Closing this issue.
from asciidoctor-multipage.
@ldz-w, it would be great to get this extension working with current Asciidoctor versions. However I am not able to work on this more unless someone is interested in sponsoring.
If you are looking at the code, please note the Ruby API documentation at https://www.rubydoc.info/gems/asciidoctor is very helpful, but see asciidoctor/asciidoctor#3554.
from asciidoctor-multipage.
it would be great to get this extension working with current Asciidoctor versions.
What are the main roadblocks here (just hints / general pointers)?
from asciidoctor-multipage.
Hi @woj-tek, thank you for your interest in asciidoctor-multipage. A start would be to run the sample file as shown in the README but with a newer version of Asciidoctor. The following example adds --trace
to show a full backtrace for in case of an error:
$ gem install --user-install asciidoctor
$ gem list asciidoctor$
asciidoctor (2.0.10, 1.5.7.1)
$ asciidoctor --trace -r ./asciidoctor-multipage.rb -b multipage_html5 \
test/sample.adoc
Traceback (most recent call last):
16: from /home/user/.gem/ruby/2.5.0/bin/asciidoctor:23:in `<main>'
15: from /home/user/.gem/ruby/2.5.0/bin/asciidoctor:23:in `load'
14: from /home/user/.gem/ruby/2.5.0/gems/asciidoctor-2.0.10/bin/asciidoctor:15:in `<top (required)>'
13: from /home/user/.gem/ruby/2.5.0/gems/asciidoctor-2.0.10/lib/asciidoctor/cli/invoker.rb:111:in `invoke!'
12: from /home/user/.gem/ruby/2.5.0/gems/asciidoctor-2.0.10/lib/asciidoctor/cli/invoker.rb:111:in `each'
11: from /home/user/.gem/ruby/2.5.0/gems/asciidoctor-2.0.10/lib/asciidoctor/cli/invoker.rb:128:in `block in invoke!'
10: from /home/user/.gem/ruby/2.5.0/gems/asciidoctor-2.0.10/lib/asciidoctor/convert.rb:183:in `convert_file'
9: from /home/user/.gem/ruby/2.5.0/gems/asciidoctor-2.0.10/lib/asciidoctor/convert.rb:183:in `open'
8: from /home/user/.gem/ruby/2.5.0/gems/asciidoctor-2.0.10/lib/asciidoctor/convert.rb:183:in `block in convert_file'
7: from /home/user/.gem/ruby/2.5.0/gems/asciidoctor-2.0.10/lib/asciidoctor/convert.rb:118:in `convert'
6: from /home/user/.gem/ruby/2.5.0/gems/asciidoctor-2.0.10/lib/asciidoctor/document.rb:951:in `convert'
5: from /home/user/asciidoctor-multipage.git/asciidoctor-multipage.rb:120:in `convert'
4: from /home/user/asciidoctor-multipage.git/asciidoctor-multipage.rb:170:in `document'
3: from /home/user/asciidoctor-multipage.git/asciidoctor-multipage.rb:354:in `new_outline_doc'
2: from /home/user/asciidoctor-multipage.git/asciidoctor-multipage.rb:354:in `each'
1: from /home/user/asciidoctor-multipage.git/asciidoctor-multipage.rb:355:in `block in new_outline_doc'
/home/user/asciidoctor-multipage.git/asciidoctor-multipage.rb:370:in `new_outline_doc': undefined method `number=' for #<Asciidoctor::Section:0x000055e05ac91090> (NoMethodError)
Did you mean? number
numbered=
numbered
So there is an Asciidoctor::Section
method missing. We need to fix that by using another method or otherwise adapting to the change in Asciidoctor. Then repeat with the next error.
Note, ideally we would have a test suite that checks compatibility with each supported version of Asciidoctor; we have issue #4 for this.
I hope this helps. Thank you!
from asciidoctor-multipage.
Related Issues (20)
- Add option to generate ToC child links without the .html extension for servers like GitHub pages that automatically remove those extension HOT 6
- Make the split page heading larger, either making it a h1 or h2 or via styles HOT 3
- Preamble affects included attributes HOT 2
- Error in multiparts documents when partnums attribute is specified HOT 1
- Use --out-file break the links to home HOT 1
- Custom `toclevels` / option to keep full TOC HOT 4
- Clarify usage of Cross-References HOT 2
- ToC generated inside block level (a) table cells with toc2 attr set on command line HOT 5
- Wrong numeration of appendix chapters HOT 4
- source highlight style does not extract to a file HOT 6
- Do not generate the configurate theme style file for Rouge highlighter HOT 2
- The tags which are in the section title are escaped HOT 1
- The appendix section number is wrong. HOT 4
- Variables not substituted in TOC HOT 3
- How do I prevent asciidoctor-multipage from resetting the latex equation counter after every HTML Page? HOT 3
- Error: "Failed to execute goal de.saumya.mojo:gem-maven-plugin" HOT 4
- Inheriting included attributes HOT 9
- wrong permissions on /var/lib/gems/3.0.0/gems/asciidoctor-multipage-0.0.16/bin/asciidoctor-multipage ? HOT 1
- Using output file name for first page (--out-file FILE is not supported) HOT 1
- Cannot disable stylesheets across all pages HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from asciidoctor-multipage.