Skip to content

Improve detail of exporter addition docs #162

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

Merged
merged 3 commits into from
May 19, 2017

Conversation

theotherjimmy
Copy link
Contributor

No description provided.

@theotherjimmy
Copy link
Contributor Author

@AnotherButler, your assistance in all matters editing is appreciated.

@theotherjimmy
Copy link
Contributor Author

@sg- @toyowata @screamerbg @maclobdell This is the documentation improvement I promised.

@theotherjimmy
Copy link
Contributor Author

@AnotherButler @iriark01 I'm pretty sure that this document is not referenced from anywhere in other part of the contribution guide. Should we add a few more references to it?

@theotherjimmy theotherjimmy force-pushed the update-exporter-docs branch 2 times, most recently from ee8327a to 4374c79 Compare May 17, 2017 20:55
@theotherjimmy theotherjimmy force-pushed the update-exporter-docs branch from 4374c79 to 8f69af0 Compare May 17, 2017 20:56
@screamerbg
Copy link

This is great! Thanks, Jimmy

Copy link
Contributor

@AnotherButler AnotherButler left a comment

Choose a reason for hiding this comment

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

@theotherjimmy This is fab. I left several suggested changes for you. Nice work.

@@ -1,18 +1,26 @@
# Adding exporters

This is a guide for adding exporters to the mbed-os tools. It covers the structure of the export subsystem and the individual exporter.
This is a guide for adding exporters to the mbed-os tools. First, This document describes what an exporter is and what rules it follows. Then, it covers the structure of the export subsystem and the individual exporter. Finally, this document gives some implementation suggestions.
Copy link
Contributor

Choose a reason for hiding this comment

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

Please lower case "this" in the second sentence.


<span class="notes">**Note:** All paths are relative to [https://github.com/ARMmbed/mbed-os/](https://github.com/ARMmbed/mbed-os/).</span>

## What is an exporter
Copy link
Contributor

Choose a reason for hiding this comment

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

Please add a question mark after "exporter" or rewrite as "What an exporter is"


<span class="notes">**Note:** All paths are relative to [https://github.com/ARMmbed/mbed-os/](https://github.com/ARMmbed/mbed-os/).</span>

## What is an exporter

An exporter is a python plugin to the mbed OS tools that convert a project using mbed CLI into one specialized for a particular IDE. For the best user experience, an exporter should:
Copy link
Contributor

Choose a reason for hiding this comment

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

Please capitalize "Python".


If you do not need any specialization of the export, then replace your
exporters class in the `EXPORT_MAP` with the `GNUARMEclipse` class. For example,
if KDS met all of these requirements, we could:
Copy link
Contributor

Choose a reason for hiding this comment

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

Please change "we" to "you" for consistent person.

- Have a single template file for each file type they produce. For example, an eclipse CDT project would have one template for `.project` files and one for `.cproject` files.
- Not call mbed CLI. It is possible to export from the website, which will not include mbed CLI in the resulting zip.


Copy link
Contributor

Choose a reason for hiding this comment

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

Please delete the extra line.

### GNU ARM Eclipse

If your IDE uses Eclipse and uses the GNU ARM Eclipse plugin, then you should
specialize or alias your exporter with the generic GNU ARM Eclipse.
Copy link
Contributor

Choose a reason for hiding this comment

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

Note: Throughout the document, a lot of the text gets split onto separate lines. [Example: line break between "should" and "specialize"] Is this preventable?

### Make

If your IDE is not Eclipse based but can still use a Makefile, then you can
specialize the Makefile exporter. Specializing the Makefile is actually how we
Copy link
Contributor

Choose a reason for hiding this comment

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

Query: Who is "we" in this sentence? ARM mbed?


If you do not need any specialization of the export, then replace your
exporters class in the `EXPORT_MAP` with the `GNUARMEclipse` class. For example,
if KDS met all of these requirements, we could:
Copy link
Contributor

Choose a reason for hiding this comment

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

Query: When is "KDS" supposed to be capitalized, and when is it supposed to be lower case?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

KDS, should be capitalized when referring to the IDE, and lower case when referring to the exporter.


### GNU ARM Eclipse

If your IDE uses Eclipse and uses the GNU ARM Eclipse plugin, then you should
Copy link
Contributor

Choose a reason for hiding this comment

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

Please delete "you should" to match the format of the paragraphs after this one.


<span class="notes">**Note:** All paths are relative to [https://github.com/ARMmbed/mbed-os/](https://github.com/ARMmbed/mbed-os/).</span>

## What is an exporter

An exporter is a python plugin to the mbed OS tools that convert a project using mbed CLI into one specialized for a particular IDE. For the best user experience, an exporter should:
Copy link
Contributor

Choose a reason for hiding this comment

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

Please delete "should", and change the mood of the bullets to reflect this. [Take > Takes, Use > Uses, Have > Has, Not call > Does not call]

@theotherjimmy theotherjimmy force-pushed the update-exporter-docs branch from 55381cb to c43bd2a Compare May 17, 2017 22:53
@toyowata
Copy link
Contributor

Hi @theotherjimmy
This is nice.

@@ -1,18 +1,25 @@
# Adding exporters

This is a guide for adding exporters to the mbed-os tools. It covers the structure of the export subsystem and the individual exporter.
This is a guide for adding exporters to the mbed-os tools. First, this document describes what an exporter is and what rules it follows. Then, it covers the structure of the export subsystem and the individual exporter. Finally, this document gives some implementation suggestions.
Copy link
Contributor

Choose a reason for hiding this comment

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

mbed OS. That's one pound to the swear jar.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ah, old text. I'll update it.


<span class="notes">**Note:** All paths are relative to [https://github.com/ARMmbed/mbed-os/](https://github.com/ARMmbed/mbed-os/).</span>

## What an exporter is

An exporter is a Python plugin to the mbed OS tools that convert a project using mbed CLI into one specialized for a particular IDE. For the best user experience, an exporter:
Copy link
Contributor

Choose a reason for hiding this comment

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

On docs.mbed, I don't think the list will be displayed unless there's a blank line between it and the paragraph above it (after "an exporter:")

Copy link
Contributor

Choose a reason for hiding this comment

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

converts

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Alright, I'll add that line.

@AnotherButler AnotherButler merged commit c3a83e2 into ARMmbed:5.4 May 19, 2017
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.

5 participants