Skip to content
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

Cargo documentation for centralized version #34

Closed
wants to merge 149 commits into from

Conversation

curiecrypt
Copy link
Collaborator

@curiecrypt curiecrypt commented Oct 16, 2024

Content

This is the first draft of the comprehensive documentation for the Telescope-ALBA protocol. The scope and content will differ from the existing documentation currently available.

The goal of this document is to bridge theory and practical implementation by providing a seamless connection between code documentation (rust doc) and user-friendly explanations based on the paper.

This draft was generated using the cargo doc tool. Once published online, the output could serve as an intuitive interface for the library. (See this.)

This PR includes:

  • A crate called cargodocs to operate modules' documentation.
  • Directory /cargodocs to include following markdowns:
    • centralized.md
    • decentralized.md
    • intro.md
    • lottery.md
    • overview.md
    • wdecentralized.md
  • katex-header.html, especially for LaTeX math symbols.

Pre-submit checklist

  • Branch
    • Tests are provided (if possible)
    • Commit sequence broadly makes sense
    • Key commits have useful messages
  • PR
    • No clippy warnings in the CI
    • Self-reviewed the diff
    • Useful pull request description
    • Reviewer requested
  • Documentation
    • Update README file (if relevant)
    • Update documentation website (if relevant)

Comments

  • The existing README has been updated but will be changed and improved.
  • It is based on the branch raph@alba-bound, so it will only include the centralized case documentation.
  • For now, the content of overview.md, intro.md, and centralized.md are taken from the hackmd document but will be revised.
  • There will be cross-references between the code documentation and the markdown files.

Run the command to compile documentation locally:

RUSTDOCFLAGS="--html-in-header src/katex-header.html" cargo doc --no-deps --open

Issue(s)

Relates to #51

Base automatically changed from raph@alba-bound to main November 1, 2024 16:37
@rrtoledo
Copy link
Collaborator

rrtoledo commented Nov 1, 2024

Perhaps we should enable the CI docs for this branch?

@tolikzinovyev
Copy link
Member

Perhaps we should enable the CI docs for this branch?

CI is a good idea. Perhaps we could have a small preview of what documentation looks like before our code is more stable? Suggest making a PR with a skeleton: some placeholder text for the future documentation, enable CI, and move the website folder? We also should think about where the design doc will go.

@rrtoledo rrtoledo linked an issue Nov 6, 2024 that may be closed by this pull request
10 tasks
@rrtoledo rrtoledo added the documentation Improvements or additions to documentation label Nov 6, 2024
@rrtoledo rrtoledo closed this Nov 12, 2024
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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Alba Documentation
4 participants