Skip to content

Move data type Docs to KDocs #2098

@i-walker

Description

@i-walker

This Issue addresses the incremental move towards KDocs as a Single Source of Truth regarding data types in Λrrow.

Which Doc's need to be moved to Kdocs?

Under modules/docs/arrow-docs/docs/_data/sidebar.yml you can view a list of data types and their permalink:

  - title: Data Types

    nested_options:
    # ....
      - title: Option
        url: /docs/arrow/core/option/

      - title: Either
        url: /docs/arrow/core/either/

      - title: Try
        url: /docs/arrow/core/try/

Data types, which do not have a permalink starting with: url: /docs/apidocs/... are in the scope of this task, e.g.: Option, Either, Try, etc.

What needs to be done?

Essentially, we're trying to mirror this PR #1474 for the Id data type.

- LookUp the docs in `modules/docs/arrow-docs/docs/docs/arrow/data`
- [ ] Replace `kotlin:ank` -> `kotlin:ank:playground`
- [ ] Add specific imports avoid wildcard imports, but take this with a grain of salt
- [ ] Place the snippet over the data type declaration
- Test if everything runs: ./gradlew clean :arrow-docs:runAnk 
- Build the site locally (very long task): 
   ./gradlew clean dokka :arrow-docs:runAnk ;
   cd modules/docs/arrow-docs/build/site; 
   jekyll serve;
- [ ] Replace the relativ permalink in sidebar.yaml with :  /docs/apidocs/<Path to data type>
- [ ] `Replace in Path` the old link with the new one

A local build is required, because the remote build does not have your binaries. Hence, a remote lookup at the webpage won't be sufficient.
The list:

  • Option
  • Either
  • Try
  • Validated
  • NonEmptyList
  • ListK
  • SequenceK
  • SetK
  • MapK
  • SortedMapK
  • Ior
  • Id
  • Reader
  • Kleisli
  • State
  • StateT
  • Store
  • Moore
  • Eval
  • Sum
  • Day
  • WriterT
  • Trampoline
  • OptionT
  • EitherT
  • Function0
  • Function1
  • Const

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions