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

Minor tweaks in README, others #102

Open
wants to merge 8 commits into
base: master
Choose a base branch
from

Conversation

DeflateAwning
Copy link

Fixes #100

@@ -1,10 +1,11 @@
# LCSC API

- to get a product page based on LCSC number use GET request on
1. To get a product page based on LCSC number, use GET request on
Copy link
Owner

Choose a reason for hiding this comment

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

What's the reason for making this numeric list? There isn't a clear sequence "first this and then this". The bullets serve as a clear graphical division between two parts of the text.

Copy link
Author

Choose a reason for hiding this comment

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

Numerical lists allow for discussion among teams better, which is important for software like this which may be prone to forking/external use. Either a short subheading or ordered list is most appropriate here, in my opinion.

Am happy to revert the list type change, if requested.

Comment on lines +12 to +13
The site and parts cache is hosted on GitHub Pages.

Copy link
Owner

Choose a reason for hiding this comment

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

This comment makes no logical sense here. This is the first information the user (e.g., electrical engineer) sees when using this project. Why should they care about the internal implementation details of the project? This just clutters the text for them.

Copy link
Author

Choose a reason for hiding this comment

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

We should factor the whole ## Developer section out then. As a developer trying to contribute to this project, I had an embarassingly tough time figuring out how to get started.

Copy link
Owner

Choose a reason for hiding this comment

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

I agree that having a separate dev section is a good direction.

README.md Outdated
Travis CI download XLS spreadsheet from the JLC PCB page, a Python script
process it and it generates per-category JSON file with components.
The page has no backend so it can be easily hosted on GitHub Pages.
Travis CI downloads the XLSX spreadsheet from the JLCPCB page, a Python script
Copy link
Owner

Choose a reason for hiding this comment

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

When we're updating the docs, it is worth it to change Travis to GH Action we use.

Copy link
Author

Choose a reason for hiding this comment

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

I agree. That's why I made the change. This is the only instance of Travis.

Copy link
Owner

Choose a reason for hiding this comment

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

I probably explained myself wrongly; the original wording is out-dated. We no longer use Travis CI, we use GH Actions. However, even after your update, you say we use Travis.

Copy link
Author

Choose a reason for hiding this comment

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

Good catch, thank you. Fixed.

$ virtualenv venv
$ source venv/bin/activate
$ pip install -e .
```

Then to download the cached parts list and process it, run:
Then to download the cached parts list (from the GH Pages site, generated via GH Actions) and process it, run:
Copy link
Owner

Choose a reason for hiding this comment

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

Again, I find this extra information rather confusing - like I can see it is downloaded from the GH pages from the URL. And GH pages are in 99+% generated in GH actions.

Copy link
Author

@DeflateAwning DeflateAwning Nov 6, 2023

Choose a reason for hiding this comment

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

GH Pages are not in 99% of GH Actions. GH Actions generally run unit tests. I know that you think it's obvious. I'm an experienced dev, and I did not think it's obvious, hence why I spent my weekend updating these docs. If you think that it's that obvious that I'm the only person who could get confused on this, feel free to request that I revert this change.

Copy link
Owner

Choose a reason for hiding this comment

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

You misinterpreted my saying (and inverted the implication):

  • I say "something is provided via GH Pages" implies "it was probably built using CI, most probably GH Actions"
  • You read "We use GH Actions" implies "We have GH Pages"

What I dislike is "random pieces of information" scattered across the documentation. If you want to improve something, there should be "architecture overview" that captures the high-level design. It shouldn't pollute step-by-step instruction that the user is expected to just follow.

Copy link
Author

@DeflateAwning DeflateAwning Nov 6, 2023

Choose a reason for hiding this comment

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

Propose a solution. Tell me what you want. We agree on the problem.

Copy link
Owner

Choose a reason for hiding this comment

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

As I said in another thread - a new document describing the overall architecture. But building such a document is currently out of my time scope.

Copy link
Author

Choose a reason for hiding this comment

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

If it's out of your timescope, can you just accept this change, and I'll split it out into a separate file later?

README.md Show resolved Hide resolved
@DeflateAwning
Copy link
Author

I've made the changes. Can you please check over.

@yaqwsx yaqwsx force-pushed the master branch 2 times, most recently from 3dc9b5b to bb8f331 Compare January 7, 2024 18:11
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.

Where does the wget data download come from? How is it generated?
2 participants