codewars / docs

The Codewars Docs :construction: WIP
https://docs.codewars.com
MIT License
56 stars 201 forks source link

Complete the glossary (an ongoing comprehensive (?) list) #23

Open Blind4Basics opened 4 years ago

Blind4Basics commented 4 years ago

docs/Glossary

Usage of the present thread

To keep this usable: if you wanna suggest ideas, post a reply to this issue. The maintainer/assignee will then update the present message.

Workflow:

In addition, if you may find from time to time some of the following acronyms:


Additional information about how to complete the glossary:

Example

- term: Test Driven Development
  description: A software development process ...
  acronym: TDD
  see: /path/to/a-page/
  links:
    - title: Test-driven Development (Wikipedia)
      url: https://en.wikipedia.org/wiki/Test-driven_development

Structure

type Term {
  id: string;                // (Optional on the user's side) Slugified word. Must be unique. Assigned with `slugify(term)` if unspecified.
  term: string;              // The term in our glossary
  description?: string;      // Description of the term in Markdown. Converted to HTML during build.
  acronym?: string;          // (Optional) acronym form.
  see?: string;              // (Optional) path to a PAGE in our docs. The title will be set automatically
  links?:                    // (Optional) List of external links
     {title: string; url: string}[];
}

The id can be used to link directly to the word

Multiline stuff/descriptions

Use | on the first line

Formatting

Markdowns are supported

Links (see docs guidelines/links)

  ...
  - description: See [example tests](/glossary/#example-tests-id)

Traps

Careful with descriptions/strings that contains a colon :...

    description: |
        for katas: blablabla                   // -> WORKS

    description: for katas: blablabla          // -> FAILS

State of the art...

hobovsky commented 4 years ago

Is it possible to have the definitions linking/referencing themsleves?

I believe that's how see, and possibly link sections work in the template described here? https://github.com/codewars/docs/issues/9#issuecomment-655477654

kazk commented 4 years ago

see is used for internal link. Set this to a path to the document and the title will be automatically filled. It'll show up under the description like See Title.

links are used for external links. You need to specify the title and the url.

https://github.com/codewars/docs/blob/f45064a7d07bb5ae50d75d0c423a47233ed5e56d/data/glossary.yml#L28-L32

Blind4Basics commented 4 years ago

are some formatting elements possible in the descriptions? (bold, italic, colors, ...?) I guess it's only raw text?
Multiline descriptions, maybe?

kazk commented 4 years ago

Description supports Markdown. https://github.com/codewars/docs/blob/f45064a7d07bb5ae50d75d0c423a47233ed5e56d/data/glossary.yml#L12-L13 https://github.com/codewars/docs/blob/f45064a7d07bb5ae50d75d0c423a47233ed5e56d/data/glossary.yml#L62-L68

image

https://docs.codewars.com/glossary/

hobovsky commented 4 years ago

Suggestions:

from B4B: added

Blind4Basics commented 4 years ago

if someone can tell me what I did wrong in that attempt...?
Bed time, here. cheers.

hobovsky commented 4 years ago

I'd suggest leaving entries in initial post which were already added to the glossary, eventually just dim them, strike through, or mark with a check. This way it will be easier to see if some new entry needs to be suggested or not.

Blind4Basics commented 4 years ago

@hobovsky : I tried with checked boxes... But I see anyone can update them, apparently... => bad idea, I guess?

hobovsky commented 4 years ago

It's very nice IMO, I meant to see what's in and what's not to avoid suggestions of terms which are already added. As long as we don't mess up the boxes , they should be good

Blind4Basics commented 4 years ago

As long as we don't mess up the boxes

that's especially the part that is worrying me x) (it's subject to accidents...)

unrealted: any idea why the build isn't working in #31 ? x/

EDIT: actually, not a problem at all x) if you click on some, the changes aren't saved. So it's good to go.

Blind4Basics commented 3 years ago

to add/check: #154