From 44780b4b3b191a06c7b615bd95726e0fab8efaaa Mon Sep 17 00:00:00 2001 From: devvsakib Date: Sun, 28 Jul 2024 17:54:56 +0600 Subject: [PATCH] try 1 for api issue --- {docs => posts}/git_hooks_automating_your_workflow.md | 0 {docs => posts}/index.json | 0 {docs => posts}/mastering_git_branching_strategies.md | 0 {docs => posts}/pull_request_tutorial_for_beginners.md | 0 src/pages/Doc/index.jsx | 2 +- src/pages/Doc/single doc/index.jsx | 2 +- 6 files changed, 2 insertions(+), 2 deletions(-) rename {docs => posts}/git_hooks_automating_your_workflow.md (100%) rename {docs => posts}/index.json (100%) rename {docs => posts}/mastering_git_branching_strategies.md (100%) rename {docs => posts}/pull_request_tutorial_for_beginners.md (100%) diff --git a/docs/git_hooks_automating_your_workflow.md b/posts/git_hooks_automating_your_workflow.md similarity index 100% rename from docs/git_hooks_automating_your_workflow.md rename to posts/git_hooks_automating_your_workflow.md diff --git a/docs/index.json b/posts/index.json similarity index 100% rename from docs/index.json rename to posts/index.json diff --git a/docs/mastering_git_branching_strategies.md b/posts/mastering_git_branching_strategies.md similarity index 100% rename from docs/mastering_git_branching_strategies.md rename to posts/mastering_git_branching_strategies.md diff --git a/docs/pull_request_tutorial_for_beginners.md b/posts/pull_request_tutorial_for_beginners.md similarity index 100% rename from docs/pull_request_tutorial_for_beginners.md rename to posts/pull_request_tutorial_for_beginners.md diff --git a/src/pages/Doc/index.jsx b/src/pages/Doc/index.jsx index afc9e96..d155ae0 100644 --- a/src/pages/Doc/index.jsx +++ b/src/pages/Doc/index.jsx @@ -12,7 +12,7 @@ const DocList = () => { useEffect(() => { const fetchDocs = async () => { try { - const response = await fetch('/docs/index.json'); + const response = await fetch('/posts/index.json'); if (!response.ok) { throw new Error(`HTTP error! status: ${response.status}`); } diff --git a/src/pages/Doc/single doc/index.jsx b/src/pages/Doc/single doc/index.jsx index 0b6b03b..fcb91da 100644 --- a/src/pages/Doc/single doc/index.jsx +++ b/src/pages/Doc/single doc/index.jsx @@ -32,7 +32,7 @@ const DocDetail = () => { useEffect(() => { const fetchContent = async () => { try { - const response = await fetch(`/docs/${slug}.md`); + const response = await fetch(`/posts/${slug}.md`); if (!response.ok) { throw new Error(`Failed to fetch content: ${response.statusText}`); }