Skip to content

Commit 1fb8316

Browse files
authored
SimpleHTTPServer module was moved to be the module http.server. (#131)
* SimpleHTTPServer module was moved to be the module http.server. * Version specific fix, python.
1 parent cf0a9e3 commit 1fb8316

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pages/Publishing (Desktop App Only).md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@ tags:: [[Publishing]]
99
- ![image.png](../assets/image_1638393320509_0.png)
1010
- 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.
1111
- ![](../assets/pages_Publishing_1615917396171_0.png)
12-
- 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.
12+
- 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.
1313
- 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.
1414
- {{youtube https://www.youtube.com/watch?v=nf9MyWRratI}}
1515
- Here're some links that might be useful:
1616
- 1. [Creating a GitHub Pages site](https://docs.github.com/en/github/working-with-github-pages/creating-a-github-pages-site)
1717
- 2. [Introduction to Vercel](https://vercel.com/docs)
18-
- 3. [Another video publishing tutorial](https://www.youtube.com/watch?v=fHc2cVNMNrA)
18+
- 3. [Another video publishing tutorial](https://www.youtube.com/watch?v=fHc2cVNMNrA)

0 commit comments

Comments
 (0)