arth-ur / sphinxcontrib-bitfield Goto Github PK
View Code? Open in Web Editor NEWSphinx extension for rendering bitfields
Sphinx extension for rendering bitfields
Hi,
I try to generate a old documentation with a new installation. For some reason the "compact" flag seems to be active all the time. Do you have a idea, what's wrong?
My bitfield.rst:
.. bitfield::
:bits: 32
:lanes: 1
[
{ "name": "Read and Write", "bits": 8, "type": 5 },
{ "name": "Read only", "bits": 8, "type": 4 },
{ "name": "Write only", "bits": 8, "type": 3 },
{ "name": "Reserved", "bits": 8, "type": 1 }
]
Versions:
Sphinx 1.8.5
sphinxcontrib-bitfield 0.4.0
bit-field 0.4.0
If i run
bit_field test.json > test.svg
i get this
test.json:
[
{ "name": "Read and Write", "bits": 8, "type": 5 },
{ "name": "Read only", "bits": 8, "type": 4 },
{ "name": "Write only", "bits": 8, "type": 3 },
{ "name": "Reserved", "bits": 8, "type": 1 }
]
Hi,
I have seen issue #1. I've tried creating PDF output but the generated images are not aligned correctly: they are inline with the text and so go off the edge of the page (see attached screenshot).
Any idea what the problem is?
Hi,
it looks like there is no support for pdf generation with "make latexpdf".
Can you confirm that?
The following error message can be seen:
Exception occurred: File "../python3.6/sie-packages/sphinx/writers/latex.py", line 2486, in unkown_visit rais NotImplemented Error('Unknown node: ' + node.class.name)
NotImplemented Error: Unknown node: bitfield
Great extension !
I am facing two annoying bugs though. I tried to use it with the following code (from the example):
.. bitfield::
:bits: 32
:lanes: 4
:vflip:
:hflip:
[
{"name": "IPO", "bits": 8, "attr": "RO"},
{ "bits": 7},
{"name": "BRK", "bits": 5, "attr": ["RW", "FOO"], "type": 4},
{"name": "CPK", "bits": 2},
{"name": "Clear", "bits": 3, "type": 5},
{ "bits": 7}
]
According to this page https://observablehq.com/@drom/bitfield-testbox
I shall get this
and I get this
In addition :compact: seems to be broken too, it has no impact.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.