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

Adjust documentation according to Dart style guide & mkdocs admonitions #73

Open
stefan-brus-frequenz opened this issue Sep 14, 2023 · 0 comments
Labels
part:docs Affects the documentation priority:low This should be addressed only if there is nothing else on the table type:enhancement New feature or enhancement visitble to users

Comments

@stefan-brus-frequenz
Copy link
Contributor

stefan-brus-frequenz commented Sep 14, 2023

What's needed?

The documentation should be adjusted according to:

Proposed solution

Here is a draft on how to adjust the protobuf specification.

// Frequenz Dispatch Automation API
//
// This API automates the process of electricity dispatches for microgrids, streamlining 
// the complex task of electricity dispatching to manage local electricity supply 
// and demand efficiently.

// !!! note
// The primary audience for this API includes application developers in the 
// energy sector focusing on microgrid electricity flow optimization.
//

// ... (rest of the general comments remain unchanged)

// Service providing operations for dispatching electricity to microgrid components.
service MicrogridDispatchService {
  // Lists all existing dispatches.
  rpc ListMicrogridDispatches(DispatchListRequest) returns (DispatchList);
  
  // Creates a new dispatch.
  rpc CreateMicrogridDispatch(DispatchCreateRequest) returns (google.protobuf.Empty);

  // ... (rest of the rpcs remain unchanged)
}

// Represents a single electricity dispatch.
//
// !!! note
// All timestamps are in UTC. Microgrids must translate UTC to local timezones.
//
message Dispatch {
  // Identifier for the dispatch.
  uint64 id = 1;

  // Identifier for the microgrid involved in this dispatch.
  uint64 microgrid_id = 2;

  // Type of the dispatch, user-defined.
  // Downstream applications should understand and process this field accordingly.
  string type = 3;

  // ... (rest of the fields remain unchanged)
}

// ... (rest of the messages remain unchanged)

// Defines the rules for when and how a dispatch should re-occur.
//
// !!! note
// Timestamps are in UTC. It's each microgrid's responsibility to translate UTC to its local timezone.
//
message RecurrenceRule {
  // Frequency specifier of the recurring dispatch.
  Frequency freq = 1;

  // ... (rest of the fields remain unchanged)
}

// ... (rest of the messages remain unchanged)

Use cases

Correct documentation creation with mkdocs and following a unified standards.

Alternatives and workarounds

No response

Additional context

No response

@stefan-brus-frequenz stefan-brus-frequenz added part:docs Affects the documentation priority:low This should be addressed only if there is nothing else on the table type:enhancement New feature or enhancement visitble to users labels Sep 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
part:docs Affects the documentation priority:low This should be addressed only if there is nothing else on the table type:enhancement New feature or enhancement visitble to users
Projects
None yet
Development

No branches or pull requests

1 participant