Public
Like
untitled-1234
Val Town is a collaborative website to build and scale JavaScript apps.
Deploy APIs, crons, & store data – all from the browser, and deployed in milliseconds.
https://w3b--df349e16358811f0b6d69e149126039e.web.val.run
This Val Town project scrapes the content from the Val Town documentation website and displays it as markdown.
- Crawls all documentation pages from docs.val.town
- Converts HTML content to Markdown format
- Provides a combined view of all documentation
- Allows downloading the entire documentation as Markdown
- Supports viewing individual pages
- Access the main endpoint without parameters to view all documentation pages combined
- The crawler will fetch up to 100 pages and combine them into a single document
- Use the
path
query parameter to view a specific documentation page- Example:
?path=/getting-started
- Example:
- Add the
format=markdown
query parameter to download the content as raw markdown- Example:
?format=markdown
or?path=/getting-started&format=markdown
- Example:
- Uses a custom HTML to Markdown converter
- Implements a crawler to visit all documentation pages
- Extracts main content from each page
- Combines all content into a single document
- Renders markdown using the
marked
library
- Limited to crawling 100 pages to avoid timeouts
- Some formatting might not be perfectly preserved in the markdown conversion
- Images and other assets are still referenced from the original source
- The crawler might need adjustments if the structure of the docs.val.town website changes
- Add caching to improve performance
- Implement a search functionality
- Add a table of contents for easier navigation
- Support for dark mode
- Improve markdown conversion accuracy