(trunk) CASSANDRA-16763 Create Cassandra documentation content for new website#1128
(trunk) CASSANDRA-16763 Create Cassandra documentation content for new website#1128michaelsembwever wants to merge 4 commits intoapache:trunkfrom
Conversation
1345977 to
39782a5
Compare
420dba9 to
87f4e57
Compare
|
we need to keep the and if and why is there still all the |
The
The Python scripts to generate the nodetool pages and the Cassandra configuration pages live in the
Nice catch. That is an oversight on my part. The |
|
The |
Are they displayed on the website anywhere? If not, please keep them in their original location. Developers will want them where they are familiar.
If I'm presuming that all the |
@polandll I am unsure about the answer to this. Do you know by any chance?
@polandll If we move the
Yes, we can do this. When we do need to make sure that folks are aware that they will need to do one of two things when generating the website HTML;
Yes, they are generated using |
|
You can move the *.spec back to their original location @ossarga. They were just part of the non-version-specific files that I moved to cassandra-website. I don't think they are referenced on any webpage, not I'm not 100% sure. |
They are used by developers, and drivers. It would nice to have them visible on the website, but they are exact documents the developers rely upon as-is. |
This commit sets up a new documentation structure and format:
* The directory struture changes from a Sphinx project to an Antora module layout.
* The formatting of the content changes from reStructuredText to AsciiDoc.
The documentation must now be built and published with Antora.
This change was done to make maintaining versioning documentation easier. As
Antora is designed to generate versioned documentation.
The old directory structure was:
<ROOT>
- doc/
- cql3/
- CQL.css
- CQL.textile
- source/
- _static/
- _templates/
- _theme/
- _util/
- <other directory sections>/
- conf.py
- index.rst
- <other *.rst pages>
- make.bat
- Makefile
- README.md
- SASI.md
- <*.spec files>
- <generation scripts>
The new directory structure organises the documentation into modules:
<ROOT>
- doc/
- cql3
- modules/
- cassandra/
- assets/
- examples/
- pages/
- partials/
- nav.adoc
- ROOT/
- pages/
- nav.adoc
- scripts/
- antora.yaml
- README.md
- SASI.md
- <*.spec files>
Patch by Lorina Poland; reviewed by Michael Semb Wever and Anthony Grasso for CASSANDRA-16763
* Fixed AsciiDoc link errors
* Deleted Docker files which ran Sphinx
* Deleted Make files
* Deleted Python scripts which generated RST files as they have been replaced with scripts in the 'scripts' directory that generate ADOC files
* Removed configuration documentation file
- doc/modules/cassandra/pages/configuration/cass_yaml_file.adoc
* Removed all nodetool command (.txt) and documentation (*.adoc) files
- doc/modules/cassandra/examples/TEXT/NODETOOL/*.txt
- doc/modules/cassandra/pages/tools/nodetool/*.adoc
- doc/modules/cassandra/pages/tools/nodetool/nodetool.txt
* Removed legacy .rst -> .adoc conversion script
- doc/modules/cassandra/pages/tools/nodetool/convert.sh
Patch by Anthony Grasso; reviewed by Michael Semb Wever for CASSANDRA-16763
Co-authored-by: polandll <lorina@datastax.com>
* Added documentation files to RAT exclude list:
- doc/antora.yaml
- doc/modules/*
* Added generated doc files to .gitignore:
- doc/modules/cassandra/pages/configuration/cass_yaml_file.adoc
- doc/modules/cassandra/pages/tools/nodetool/
- doc/modules/cassandra/examples/TEXT/NODETOOL/
Patch by Anthony Grasso; reviewed by Michael Semb Wever for CASSANDRA-16763
doc/README.md
Outdated
| The documentation can then be built from this directory by calling `make html` | ||
| (or `make.bat html` on windows). Alternatively, the top-level `ant gen-doc` | ||
| target can be used. When using Python 3.6 on Windows, use `sphinx_build -b html source build`. | ||
| Alternatively, the top-level `ant gen-doc` target can be used. |
There was a problem hiding this comment.
ant gen-doc no longer works. (because doc/Makefile is removed)
There is now way to generate docs from the cassandra directory (everything is now done here).
Is there a minimum doc/Makefile we can put in place so that ant gen-doc runs in a basic form, for the sake of catching breakages…?
In fact… can we move some of that docker-entrypoint.sh back into doc/Makefile ?
There was a problem hiding this comment.
There was a problem hiding this comment.
Good catch. I guess we have a Makefile that does part of what the generate_cassandra_versioned_docs function in the docker-entrypoint.sh does. That is, build the jar files, then call the nodetool and cassandra configuration adoc generation scripts. This would be the most that gen-doc could do and should be enough to weed out any breakages. The README also needs to be updated. We would need to make this change on all three branches.
As a bonus, we could probably update the generate_cassandra_versioned_docs function to call ant gen-doc.
There was a problem hiding this comment.
Yup, covered in the PRs above.
But… i'm going to change the Makefile and ant targets for compatibility reasons.
Generating in-tree docs: ant gen-doc and make html are for a full antora build of the in-tree docs. This won't be implemented in these PRs, but will be reserved for when it is. (We had previously spoken about being able to create non-styled antora docs, even something that can be put into man pages.)
New targets for generating the dynamic adoc pages: ant gen-asciidoc and make gen-asciidoc.
The former will be called from the generate_cassandra_versioned_docs function.
There was a problem hiding this comment.
PRs updated accordingly. (#16 needs to be applied to three branches.)
There was a problem hiding this comment.
There's another commit for trunk in polandll#18 (i botched the squash me commit you merged in already)
There was a problem hiding this comment.
PR for cassandra-4.0 polandll#17
PR for cassandra-3.11 polandll#19
…ate README.md too.
|
committed with 54aee87 |
No description provided.