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

docs: improve docs (DEV-1478) #249

Merged
merged 5 commits into from Nov 9, 2022
Merged

docs: improve docs (DEV-1478) #249

merged 5 commits into from Nov 9, 2022

Conversation

jnussbaum
Copy link
Collaborator

resolves DEV-1478

@jnussbaum jnussbaum self-assigned this Nov 3, 2022
@@ -113,38 +115,6 @@ The following fields are optional (if one or more of these fields are not used,
- groups
- users

A simple example definition of the `project` object looks like this:
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

A complete example of a project is already given some lines above, so it doesn't make sense to repeat this here.

@@ -426,7 +396,7 @@ example, the list "colors" could be imported as follows:
"en": "A list with categories"
},
"nodes": [
...
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

This and other similar changes are just that PyCharm doesn't show that many problems. In the future, I'd like to look more frequently on the problems that are detected by PyCharm. But for this, I need to kick out the false positives.

Copy link
Collaborator

Choose a reason for hiding this comment

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

Understandable (but confirms my dislike for PyCharm ;-)... in any case, I'm sure you could deactivate specific warnings).
Another thing you could consider would be annotating the code block as jsonc not json, so that comments are allowed , and then have // ... where the ellipsis is

@@ -11,7 +11,7 @@ The command to import an XML file on a DSP server is described [here](./dsp-tool

The import file must start with the standard XML header:

```xml
Copy link
Collaborator Author

@jnussbaum jnussbaum Nov 4, 2022

Choose a reason for hiding this comment

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

If it's invalid XML, it's rather a pain that it is marked as XML. (PyCharm detects this as a problem)

Copy link
Collaborator

Choose a reason for hiding this comment

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

not a fan of this change, but if it makes your life better, go ahead

@@ -427,76 +428,78 @@ Example of a property with a public and a hidden decimal value:
### <geometry-prop>
Copy link
Collaborator Author

@jnussbaum jnussbaum Nov 4, 2022

Choose a reason for hiding this comment

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

I reorganised the docs of <geometry-prop>. In principle I just moved information from one place to the other, with only few real deletions.

Copy link
Collaborator

@BalduinLandolt BalduinLandolt left a comment

Choose a reason for hiding this comment

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

See my comments - overall I'm not enthusiastic about some of these changes, but at the end of the day the code base has to work for you, not for my code review :)

```json
```
Copy link
Collaborator

Choose a reason for hiding this comment

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

I think with that you remove syntax highlighting, which is good to have in my opinion

@@ -426,7 +396,7 @@ example, the list "colors" could be imported as follows:
"en": "A list with categories"
},
"nodes": [
...
Copy link
Collaborator

Choose a reason for hiding this comment

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

Understandable (but confirms my dislike for PyCharm ;-)... in any case, I'm sure you could deactivate specific warnings).
Another thing you could consider would be annotating the code block as jsonc not json, so that comments are allowed , and then have // ... where the ellipsis is

Comment on lines -223 to +234
```python
```
Copy link
Collaborator

Choose a reason for hiding this comment

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

again, this removes syntax highlighting I think, which reduces readability

@@ -11,7 +11,7 @@ The command to import an XML file on a DSP server is described [here](./dsp-tool

The import file must start with the standard XML header:

```xml
Copy link
Collaborator

Choose a reason for hiding this comment

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

not a fan of this change, but if it makes your life better, go ahead

@jnussbaum jnussbaum merged commit 7947dec into main Nov 9, 2022
@jnussbaum jnussbaum deleted the wip/dev-1478-improve-docs branch November 9, 2022 09:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants