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

Adding start-docs command and readme improvements #2997

Merged
merged 5 commits into from
Aug 19, 2023

Conversation

SnailBones
Copy link
Contributor

Launch Checklist

  • Confirm your changes do not include backports from Mapbox projects (unless with compliant license) - if you are not sure about this, please ask!
  • Briefly describe the changes in this PR.
  • Link to related issues.
  • Include before/after visuals or gifs if this PR includes visual changes.
  • Write tests for all new functionality.
  • Document any changes to public APIs.
  • Post benchmark scores.
  • Add an entry to CHANGELOG.md under the ## main section.

@SnailBones SnailBones marked this pull request as draft August 17, 2023 23:48
@codecov-commenter
Copy link

codecov-commenter commented Aug 17, 2023

Codecov Report

Patch and project coverage have no change.

Comparison is base (8a02566) 75.03% compared to head (abedbe7) 75.03%.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #2997   +/-   ##
=======================================
  Coverage   75.03%   75.03%           
=======================================
  Files         240      240           
  Lines       19116    19116           
  Branches     4312     4312           
=======================================
  Hits        14343    14343           
  Misses       4773     4773           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

HarelM
HarelM previously approved these changes Aug 18, 2023
@SnailBones SnailBones marked this pull request as ready for review August 18, 2023 03:48
@SnailBones SnailBones changed the title Adding start-docs command and reademe improvements Adding start-docs command and readme improvements Aug 18, 2023
@SnailBones
Copy link
Contributor Author

Thanks @HarelM!

package.json Outdated
@@ -146,6 +146,7 @@
"generate-style-code": "npm run tsnode build/generate-style-code.ts",
"generate-typings": "npm run tsnode build/generate-typings.ts",
"generate-docs": "typedoc && npm run tsnode build/generate-docs.ts",
"start-docs": "docker run --rm -it -p 8000:8000 -v ${PWD}:/docs squidfunk/mkdocs-material",
Copy link
Member

Choose a reason for hiding this comment

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

Can you move this command down to the start commands and keep this section for the generate commands?


## Setting up Docker access

Before you can run the docs, you need to ensure that you can run `docker` commands without `sudo`:
Copy link
Member

Choose a reason for hiding this comment

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

I would consider linking to an article here in the docker docs or something, as this is not specific to this project.


```bash
npm run start-docs
```
Copy link
Member

Choose a reason for hiding this comment

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

This is great, I would consider adding a note on how to update the docs while editing, i.e. keep the start-docs running and re run generate-docs to see the changes.

@SnailBones SnailBones requested a review from HarelM August 18, 2023 22:19
@SnailBones
Copy link
Contributor Author

Thanks for the review @HarelM! Just addressed your three suggestions.

@HarelM HarelM merged commit 4830fdf into maplibre:main Aug 19, 2023
14 checks passed
@HarelM
Copy link
Member

HarelM commented Aug 19, 2023

Thanks!!

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

3 participants