Skip to content

docs: misc docusaurus improvements #478

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

Open
wants to merge 14 commits into
base: main
Choose a base branch
from
Open

Conversation

linconvidal
Copy link
Member

@linconvidal linconvidal commented Jun 4, 2025

This PR includes miscellaneous documentation and Docusaurus improvements, initially part of PR #456. I’ve separated these changes to facilitate delivery, as the API spec (api.yaml) fixes require further debugging and review.

Key updates:

  • Docusaurus enhancements: better UX/UI, clearer documentation navigation, and updated Scalar plugin version.
  • Adjusted Docker instructions and examples to reflect the latest image tags.
  • Improved readability and consistency in various docs (QA, performance tests, deployment instructions).
  • Clarified /account/balance endpoint behavior when queried with stake addresses (Document /account/balance Endpoint Behavior for Stake Addresses #473).
  • Documented oldest_block_identifier behavior in /network/status when pruning is enabled (Document oldest_block_identifier Behavior When Pruning is Enabled #474).
  • Clarified responses for stake address queries in /account/balance; renamed “Multi-Assets” to “Native Tokens” for consistency with Cardano terminology.
  • Improved documentation on spent UTXO pruning, including updated storage requirements and clarified limitations when pruning is active.

…ents

- Updated API title to reflect rebranding to Mesh API.
- Enhanced some endpoint descriptions for clarity and accuracy (network status, options, block transaction).
- Added detailed descriptions for Cardano-specific transaction and block metadata.
- Commented out unimplemented mempool endpoints and related documentation.
- Improved Docusaurus configuration for better user experience, including last update timestamps .
- Updated CSS for improved layout and styling consistency across documentation pages.
- Updated example values for block, account and transaction identifiers to align with current data.
- Enhanced operation types and statuses to include Cardano-specific options.
- Added valid response examples to improve clarity.
- Commented out unimplemented features and provided TODO notes for future implementation.
…tion layout

- Updated custom CSS to enhance layout consistency, including centering the navbar and main wrapper.
- Removed the proxy URL from the configuration.
- Adjusted styles for the theme edit button and sidebar to improve user experience.
- Deleted the outdated API specification file to streamline documentation.
Remove multiple 'examples' entries from schema definitions ('Operation', 'NetworkIdentifier'). These were intended solely for enhanced rendering in Scalar docs but caused spec-validation failures during CI builds.

Single 'example' per schema retained to ensure OpenAPI compliance and fix build errors.
…ues in API specification

- Upgraded the OpenAPI generator Maven plugin from version 6.4.0 to 7.13.0.
- Simplified example values in the API specification by removing unnecessary array structures for 'network' and 'status' fields.
@linconvidal linconvidal added the documentation Improvements or additions to documentation label Jun 4, 2025
@linconvidal linconvidal moved this to In progress in Rosetta Java Kanban Jun 4, 2025
@linconvidal linconvidal moved this from In progress to In review in Rosetta Java Kanban Jun 4, 2025
@linconvidal linconvidal moved this from In review to In progress in Rosetta Java Kanban Jun 4, 2025
@linconvidal linconvidal self-assigned this Jun 4, 2025
- Renamed "Pruning UTXOs" to "Spent UTXO Pruning" for clarity.
- Enhanced explanations regarding the impact and configuration of spent UTXO pruning.
- Updated resource requirements in README and intro documentation to specify spent UTXO pruning.
@linconvidal linconvidal linked an issue Jun 4, 2025 that may be closed by this pull request
…lti-assets section

- Added a note on stake addresses to clarify the response from the `/account/balance` endpoint when queried with a stake address (available rewards).
- Renamed the "Multi-Assets" section to "Native Tokens" for better alignment with terminology used in Cardano documentation.
@linconvidal linconvidal linked an issue Jun 5, 2025 that may be closed by this pull request
@linconvidal linconvidal moved this from In progress to In review in Rosetta Java Kanban Jun 5, 2025
@linconvidal linconvidal added this to the 1.2.9 milestone Jun 5, 2025
…riables

- Enhanced the performance measurements section with load test results for versions 1.2.6, 1.2.7, and 1.2.9.
- Updated environment variables documentation to reflect changes in version 1.2.9, including the introduction of `REMOVE_SPENT_UTXOS` and `REMOVE_SPENT_UTXOS_LAST_BLOCKS_GRACE_COUNT`, while deprecating older variables.
- Revised storage requirements in README and intro documentation to reflect updated values for both pruning enabled and disabled scenarios.
- Added clarifications regarding the limitations of searching transactions by address when pruning is enabled in the pruning and cardano-addons documentation.
Copy link

@linconvidal
Copy link
Member Author

@Kartiiyer12 @tienna @matiwinnetou PR ready for review. Here is a rendered version: https://linconvidal.github.io/cardano-rosetta-java/

@linconvidal linconvidal requested a review from tienna June 12, 2025 21:26
@linconvidal linconvidal moved this from In review to QA (next release) in Rosetta Java Kanban Jun 12, 2025
@@ -29,8 +29,8 @@ Since [Yaci-Store](https://github.com/bloxbean/yaci-store) is a comparatively li

- 4CPU Cores
- 32GB RAM
- ca. > 1TB of storage (REMOVE_SPENT_UTXOS=false) [default]
- ca > 400GB of storage (REMOVE_SPENT_UTXOS=true)
- ~1.3 TB total storage (node ~250 GB + Rosetta DB ~1 TB) — pruning disabled [default]
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why do we cann this pruning again? :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation needs QA
Projects
Status: QA (next release)
Development

Successfully merging this pull request may close these issues.

Document oldest_block_identifier Behavior When Pruning is Enabled Document /account/balance Endpoint Behavior for Stake Addresses
2 participants