Skip to content

Instantly share code, notes, and snippets.

@inekipelov
Last active September 25, 2026 08:35
Show Gist options
  • Select an option

  • Save inekipelov/44dbbaa29be9d9a44ee11778cc5645f6 to your computer and use it in GitHub Desktop.

Select an option

Save inekipelov/44dbbaa29be9d9a44ee11778cc5645f6 to your computer and use it in GitHub Desktop.
Prefer Markdown when fetching pages from developer.apple.com

Apple developer documentation

Prefer Markdown when fetching pages from developer.apple.com.

For /documentation pages, append .md to the URL: https://developer.apple.com/documentation/swiftui/view.md

For /design and /tutorials pages, insert /tutorials/data before the original path and append .md: https://developer.apple.com/tutorials/data/design/human-interface-guidelines/buttons.md

Some tutorial pages, including overviews, have no Markdown version. For those, use .json: https://developer.apple.com/tutorials/data/tutorials/swiftui.json

Verify that the response contains the requested document. If retrieval fails, explicitly report that the page could not be read.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment