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

Improve API documentation #1025

Merged
merged 20 commits into from
Jan 21, 2020
Merged

Conversation

alexandra-simeonova
Copy link
Contributor

@alexandra-simeonova alexandra-simeonova commented Dec 17, 2019

Description

Changes proposed in this pull request:

  • add overviews and structure elements
  • add a few missing functions, specifically the UX part of Luigi Core API

Related issue(s)
#1016

@alexandra-simeonova alexandra-simeonova added the documentation documentation tasks label Dec 17, 2019
@alexandra-simeonova alexandra-simeonova added this to the Sprint 8 milestone Dec 17, 2019
@@ -30,7 +30,7 @@ class LuigiI18NManager {

/**
* Gets the current locale.
* @returns {string} current locale
* @returns {string}: current locale
Copy link
Contributor

@maxmarkus maxmarkus Jan 10, 2020

Choose a reason for hiding this comment

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

Type definitions cannot be followed by a colon (or from my tests, it works with @returns, but not with @params, probably because the first word after the type is processed too, since it describes the function parameter name).
If you run lerna run docu you see that it is broken. Please fix all occurrences in this file.

@maxmarkus maxmarkus self-assigned this Jan 10, 2020
This reverts commit d13d2f5.
This reverts commit 9acd3e6.
Copy link
Contributor

@bszwarc bszwarc left a comment

Choose a reason for hiding this comment

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

Added the review

docs/luigi-client-api.md Show resolved Hide resolved
docs/luigi-client-api.md Show resolved Hide resolved
- [Callbacks](#lifecycle˜initlistenercallback) - callback functions for initListener and customMessageListener
- [Link manager](#linkmanager) - you can use the linkManager instead of an internal router
- [Split view](#splitview) - allows you to open a micro frontend in the lower part of the content area in a "split screen" view
- [uxManager](#uxmanager) - functions related to appearance and user interface
Copy link
Contributor

Choose a reason for hiding this comment

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

Appearance meaning the appearance of user interface? Or something else?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Since Luigi is almost exclusively about user interface, I'd say the first one. Maybe we don't need the word "appearance" here. Thank you 👍


##### Parameters

- `settings` **[Object](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object)** the settings for the alert
Copy link
Contributor

Choose a reason for hiding this comment

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

Some of the sentences do have dots at the end some don't - but I think it may be this rendering problem you told me about. Also, it's up to you to have / not have them as long as they are consistent :)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes, I tried to add the dots but I get an error from the script which renders the docu 🙁

Copy link
Contributor Author

Choose a reason for hiding this comment

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

So, I removed the dots for consistency.

docs/luigi-core-api.md Outdated Show resolved Hide resolved
@alexandra-simeonova alexandra-simeonova merged commit 756e561 into SAP:master Jan 21, 2020
JohannesDoberer added a commit to JohannesDoberer/luigi that referenced this pull request Feb 12, 2020
* master:
  Debug cypress travis issue (SAP#1097)
  Fix communication from external mf using customMessages (SAP#1081)
  fix fd-modal mix-up (SAP#1068)
  who is using luigi in about page (SAP#1077)
  Add cobrick logo (SAP#1072)
  who is using luigi button (SAP#1066)
  Update README.md
  Update README.md
  release v0.7.4 (SAP#1069)
  fix items calculation in more btn of tab nav(SAP#1065)
  Add valid href to navigation links (SAP#1034)
  fix runtime error when contextSwitcher is not defined (SAP#1047)
  Improve API documentation (SAP#1025)
  Improve authorization doc structure (SAP#1024)
  Improve Overview page (SAP#1000)
  Improve application-setup.md (SAP#965)
  create content guidelines (#877)
  Documentation fixes (SAP#1003)

# Conflicts:
#	docs/luigi-core-api.md
#	test/e2e.sh
stanleychh pushed a commit to stanleychh/luigi that referenced this pull request Dec 30, 2021
* update luigi-core-api.md

Co-authored-by: Barbara Szwarc <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation documentation tasks
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants