-
Notifications
You must be signed in to change notification settings - Fork 3
🚀 Release v1.0.0 #12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
🚀 Release v1.0.0 #12
Changes from all commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
831c5f0
versioned and update docs
juiwenchen 913d587
updated the abstract
juiwenchen 99b1f81
updated dcos
juiwenchen 2814745
updated docs
juiwenchen 2dbc90b
updated docs
juiwenchen cc73a62
Update docs/source/components/write.rst
juiwenchen d646b3e
Update docs/source/development/roadmap.rst
juiwenchen 57c5c02
updated according to the review
juiwenchen File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,49 @@ | ||
| .. _write: | ||
|
|
||
| Write | ||
| ===== | ||
|
|
||
| The ``write`` command is used to generate file formats such as reStructuredText from the markers extracted by the ``analyse`` command. | ||
| This allows you to create documentation that includes links to source code based on the need ids specified in your code comments. | ||
|
|
||
| Example usage | ||
| ------------- | ||
|
|
||
| With the following extracted markers fron the ``analyse`` command, | ||
|
|
||
| .. code-block:: json | ||
|
|
||
| { | ||
| "my_project": [ | ||
| { | ||
| "filepath": "/home/demo/git_repo/ub/sphinx-codelinks/tests/data/need_id_refs/dummy_1.cpp", | ||
| "remote_url": "https://github.com/useblocks/sphinx-codelinks/blob/951e40e7845f06d5cfc4ca20ebb984308fdaf985/tests/data/need_id_refs/dummy_1.cpp#L3", | ||
| "source_map": { | ||
| "start": {"row": 2, "column": 13}, | ||
| "end": {"row": 2, "column": 51} | ||
| }, | ||
| "tagged_scope": "void dummy_func1(){\n //...\n }", | ||
| "need_ids": ["NEED_001", "NEED_002", "NEED_003", "NEED_004"], | ||
| "marker": "@need-ids:", | ||
| "type": "need-id-refs" | ||
| }, | ||
| ], | ||
| } | ||
|
|
||
| The following RST file with :external+needs:ref:`needextend <needextend>` directive can be generated by the ``write rst`` command: | ||
|
|
||
| .. code-block:: rst | ||
|
|
||
| .. needextend:: NEED_001 | ||
| :remote-url: https://github.com/useblocks/sphinx-codelinks/blob/951e40e7845f06d5cfc4ca20ebb984308fdaf985/tests/data/need_id_refs/dummy_1.cpp#L3 | ||
|
|
||
| .. needextend:: NEED_002 | ||
| :remote-url: https://github.com/useblocks/sphinx-codelinks/blob/951e40e7845f06d5cfc4ca20ebb984308fdaf985/tests/data/need_id_refs/dummy_1.cpp#L3 | ||
|
|
||
| .. needextend:: NEED_003 | ||
| :remote-url: https://github.com/useblocks/sphinx-codelinks/blob/951e40e7845f06d5cfc4ca20ebb984308fdaf985/tests/data/need_id_refs/dummy_1.cpp#L3 | ||
|
|
||
| .. needextend:: NEED_004 | ||
| :remote-url: https://github.com/useblocks/sphinx-codelinks/blob/951e40e7845f06d5cfc4ca20ebb984308fdaf985/tests/data/need_id_refs/dummy_1.cpp#L3 | ||
|
|
||
| More examples can be found in `test cases <https://github.com/useblocks/sphinx-codelinks/blob/main/tests/test_needextend_write.py>`__ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
isn't that done already?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
not yet unfortunately