Skip to content

navidb/primevue-v4-markdown-docs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PrimeVue v4 Markdown Documentation

This repository contains a consolidated version of the PrimeVue v4 documentation in a single Markdown file. It was generated by scraping the official PrimeVue documentation website using the included Python script.

Purpose:

  • Provide offline access to the documentation.
  • Enable easier searching across the entire documentation.
  • Serve as a potential data source for training Large Language Models (LLMs) on PrimeVue v4.

Disclaimer: This is an unofficial resource generated through web scraping. While efforts were made to capture the main content accurately, there might be minor formatting inconsistencies or missing elements (like interactive examples or images). The content's accuracy depends on the official documentation at the time of scraping. For the most up-to-date and official information, always refer to the Official PrimeVue Documentation.

Contents

  • primevue_v4_docs.md: The consolidated documentation in Markdown format.
  • scrape_primevue.py: The Python script used to scrape the website and generate the Markdown file.
  • requirements.txt: Lists the Python libraries required to run the script.
  • LICENSE: MIT License file.
  • .gitignore: Standard Python gitignore file.

Using the Scraper Script

If you want to regenerate the documentation yourself (e.g., after the official docs are updated):

  1. Prerequisites: Make sure you have Python 3 installed.
  2. Clone the repository:
    git clone https://github.com/navidb/primevue-v4-markdown-docs.git
    cd primevue-v4-markdown-docs
  3. Set up a virtual environment (Recommended):
    python3 -m venv venv
    source venv/bin/activate  # On Windows use `venv\Scripts\activate`
  4. Install dependencies:
    pip install -r requirements.txt
  5. Run the script:
    python scrape_primevue.py <STARTING_URL> <OUTPUT_FILENAME.md>
    # Example:
    python scrape_primevue.py https://primevue.org/introduction/ primevue_v4_docs_latest.md

Notes

  • The script currently attempts to find content within div.doc-main or div.doc elements.
  • It skips certain pages (like Roadmap, Templates, etc.) that had significantly different structures or caused SSL issues during the initial run. You can modify the SKIPPED_URLS set in the script if needed.
  • Images and the right-hand page navigation (ul.doc-section-nav) are intentionally excluded from the Markdown output.

Contributing

Feel free to open issues or pull requests if you find problems or have suggestions for improving the script or the generated documentation.

About

Consolidated PrimeVue v4 documentation in Markdown format, generated via web scraping. Includes the Python scraper script. Useful for offline access, searching, and LLM training.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages