@apify/docs-theme 1.0.220 → 1.0.221

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@apify/docs-theme",
3
- "version": "1.0.220",
3
+ "version": "1.0.221",
4
4
  "description": "",
5
5
  "main": "./src/index.js",
6
6
  "files": [
@@ -55,7 +55,11 @@ const DROPDOWN_OPTIONS = [
55
55
  ];
56
56
 
57
57
  const getPrompt = (currentUrl) => `Read from ${currentUrl} so I can ask questions about it.`;
58
- const getMarkdownUrl = (currentUrl) => `${currentUrl}.md`;
58
+ const getMarkdownUrl = (currentUrl) => {
59
+ const url = new URL(currentUrl);
60
+ url.pathname = `${url.pathname.replace(/\/$/, '')}.md`;
61
+ return url.toString();
62
+ };
59
63
 
60
64
  const onOpenInChatGPTClick = () => {
61
65
  if (window.analytics) {