Repository navigation
PokeAPI Docs V2 - #179
PokeAPI Docs V2#179FallenDeity wants to merge 50 commits into
Conversation
…ctories & set up prettier formatter
…horthand syntax & configure prettier-plugin-tailwindcss
…-classes & fix accent strings
e7bf0e7 to
ea435f4
Compare
ea435f4 to
6c86657
Compare
|
Some comments:
Great job @FallenDeity ! You updated the code just as I wanted! :) We can ship the new website soon I guess! |
|
@Naramsim made rest of the changes u mentioned and few more cuts to some bloat we had with footer styling and some extra astro files consolidated them, also changed the color palette a bit also added alert capabilities same as old site |
|
Hi, some comments:
Excellent work for the rest! We are close to ship this! Imho the blockers are number 3 and 4 |
|
updated with the changes except for 0 and 1 (for one i sent a message on discord) regarding 0 its because the payloads u see embedded on load are trimmed payloads to keep webpage size small, if the user hits a req then they get the full payload and u will see the scroll i could make the sizes smaller for all of them but then it would be a lot more scrolling, if i make it different size per endpoint it wouldnt match size based on endpoint they fetch or i would have to resize when they fetch causing a layout shift which is jarring, i think current size is fine we can tweak it a bit later |
|
Hi, regarding 0 I meant that instead of writing directly inside the api explorer Here an example of api-explorer with the string If a user fires the request without submitting a string we could either show a message or do nothing since the result has been already loaded. |
|
One minor thing, when clicking the blue button Send, the button resizes and the text changes to I think the following CSS fixes what I'm saying: PS: to see what I'm talking about you can slow down your network in the console panel and you'll see the button resizes until the request is done. |
|
I think we should get this in first before the site PokeAPI/pokeapi#1711 it fixes some of the openapi schema inconsistencies we had and if this is merged it would allow me to drop some of the processing and workarounds here |
Hi folks opened a pr for review and discussion purposes for the docs website migration
Astro + Starlight based docs (refer to #162)
This pr migrates the old react static based docs to astro based docs initially setup by @Indyandie this builds on top of that to add more features
The site is hosted on https://fallendeity.github.io/pokeapi.co/ currently available for active review and open for revisions required for any unexpected logic or visual bugs
file structure
Known issue package.json ghpages command site url env var currently for review purposes points to
fallendeity.github.ioand openapi schema url in astro config waiting on this to get merged for latest openapi PokeAPI/pokeapi#1609attempt has been made to utilize tailwindcss for most styling the remaining styling overrides the starlight styles used by starlight during build time to fit the theme and ui
Pic Gallery
cc: @Naramsim @Indyandie