continue-custom/core/indexing/docs
Jazzcort 1d06c3b756 Fix: improved Documentation Indexing and Submenu Updates
This patch significantly enhances how Continue responds to changes in the
documentation configuration, providing a more consistent and user-friendly
experience.

Previously, Continue's handling of documentation configuration changes
could lead to inconsistencies, requiring users to relaunch the application
to see updates. This PR addresses these issues by improving the caching,
indexing, and display of the documentation.

Key Improvements:
  1. Submenu items for the documentation now refresh automatically after
     retrieving the cache from S3. Before this fix, it won't show up in
     the submenu until we relaunch Continue.
  2. The titles and favicons for cached documentation now correctly
     reflect the values defined in the docs configuration, rather than
     defaulting to the URL.
  3. Deleting or commenting out a documentation entry in the configuration
     file will now automatically remove it from the submenu, ensuring
     consistency between the configuration and the displayed options.
  4. If only the title or favicon of a document changes, Continue now
     efficiently updates the metadata in the SQLite database instead of
     performing a full reindexing.
  5. Continue can now catch and apply changes to documentation titles and
     favicons even when the application is not actively running.

Future Considerations:
  1. The doc schema in the config-yaml should be updated to include
     maxDepth and useLocalCrawling parameters if we're planing to keep
     these parameters. Their values are always undefined now no matter
     what users set in config file.
  2. If we do keep maxDepth and useLocalCrawling, we should consider adding
     maxDepth and useLocalCrawling to the SQLite metadata. This would allow
     the SQLite database to serve as a persistent store for each document's
     parameters, preventing edge cases where changes to the documentation
     configuration are missed when Continue is inactive.
2025-07-08 17:06:56 -04:00
..
crawlers update all instances of editConfigJson 2025-03-25 11:50:50 -07:00
article.ts Allow articels without h2 tags 2025-02-12 12:05:46 +01:00
DocsCache.test.ts feat: create docs cache 2025-03-22 20:27:39 -07:00
DocsCache.ts docscache fixes 2025-03-24 23:54:52 -07:00
DocsService.skip.ts remove free trial provider 2025-05-26 17:42:05 -07:00
DocsService.ts Fix: improved Documentation Indexing and Submenu Updates 2025-07-08 17:06:56 -04:00
migrations.ts fix misused promises errors in core folder 2025-06-13 23:01:28 +05:30