From 8819290e054803a3124fd5403ddd60313a44ec2b Mon Sep 17 00:00:00 2001 From: Ramayen <106333136+VimYoung@users.noreply.github.com> Date: Thu, 22 May 2025 11:05:03 +0530 Subject: [PATCH 1/2] SimpleHTTPServer module was moved to be the module http.server. --- pages/Publishing (Desktop App Only).md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pages/Publishing (Desktop App Only).md b/pages/Publishing (Desktop App Only).md index 57837474..ad06213f 100644 --- a/pages/Publishing (Desktop App Only).md +++ b/pages/Publishing (Desktop App Only).md @@ -9,10 +9,10 @@ tags:: [[Publishing]] - ![image.png](../assets/image_1638393320509_0.png) - 2. Click the top-right three-dots and select `Export graph`. Then select a folder, and Logseq will export all the files needed for publishing there. - ![](../assets/pages_Publishing_1615917396171_0.png) - - 3. The exported assets basically make up a web application, when runs Logseq with your public pages, in read-only mode. After exporting, if you are on Linux-like environment, you can `cd` into the export folder and run `python -m SimpleHTTPServer`. Voilà🎉, you can now visit the published graph at `localhost:8000` in your browser. + - 3. The exported assets basically make up a web application, when runs Logseq with your public pages, in read-only mode. After exporting, if you are on Linux-like environment, you can `cd` into the export folder and run `python -m http.server`. Voilà🎉, you can now visit the published graph at `localhost:8000` in your browser. - 4. Of course publishing your beautiful graph on localhost only is not that fun. Since we have all the assets now, publish them on platforms like [Github Pages](https://docs.github.com/en/pages/getting-started-with-github-pages/creating-a-github-pages-site) and [Vercel](https://vercel.com/docs) is straightforward. Below is a video tutorial on how to publish Logseq pages to Github Pages. - {{youtube https://www.youtube.com/watch?v=nf9MyWRratI}} - Here're some links that might be useful: - 1. [Creating a GitHub Pages site](https://docs.github.com/en/github/working-with-github-pages/creating-a-github-pages-site) - 2. [Introduction to Vercel](https://vercel.com/docs) - - 3. [Another video publishing tutorial](https://www.youtube.com/watch?v=fHc2cVNMNrA) \ No newline at end of file + - 3. [Another video publishing tutorial](https://www.youtube.com/watch?v=fHc2cVNMNrA) From 8e176c308c362fae1cb90b14d1c747c62e782fa4 Mon Sep 17 00:00:00 2001 From: Ramayen <106333136+VimYoung@users.noreply.github.com> Date: Thu, 29 May 2025 09:36:09 +0530 Subject: [PATCH 2/2] Version specific fix, python. --- pages/Publishing (Desktop App Only).md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pages/Publishing (Desktop App Only).md b/pages/Publishing (Desktop App Only).md index ad06213f..afd0e747 100644 --- a/pages/Publishing (Desktop App Only).md +++ b/pages/Publishing (Desktop App Only).md @@ -9,7 +9,7 @@ tags:: [[Publishing]] - ![image.png](../assets/image_1638393320509_0.png) - 2. Click the top-right three-dots and select `Export graph`. Then select a folder, and Logseq will export all the files needed for publishing there. - ![](../assets/pages_Publishing_1615917396171_0.png) - - 3. The exported assets basically make up a web application, when runs Logseq with your public pages, in read-only mode. After exporting, if you are on Linux-like environment, you can `cd` into the export folder and run `python -m http.server`. Voilà🎉, you can now visit the published graph at `localhost:8000` in your browser. + - 3. The exported assets basically make up a web application, when runs Logseq with your public pages, in read-only mode. After exporting, if you are on Linux-like environment, you can `cd` into the export folder and run `python -m SimpleHTTPServer` if you have python 2.x or run `python3 -m http.server` if your python version is 3.x . Voilà🎉, you can now visit the published graph at `localhost:8000` in your browser. - 4. Of course publishing your beautiful graph on localhost only is not that fun. Since we have all the assets now, publish them on platforms like [Github Pages](https://docs.github.com/en/pages/getting-started-with-github-pages/creating-a-github-pages-site) and [Vercel](https://vercel.com/docs) is straightforward. Below is a video tutorial on how to publish Logseq pages to Github Pages. - {{youtube https://www.youtube.com/watch?v=nf9MyWRratI}} - Here're some links that might be useful: