Code Monkey home page Code Monkey logo

Comments (13)

dwrolvink avatar dwrolvink commented on June 19, 2024

Works for me:
image

If you press F12 and click on console, does it show errors?

from obsidian-html.

merlinuwe avatar merlinuwe commented on June 19, 2024

This is the last output of the script:

b'C:/Users/uwewe/AppData/Roaming/Python/Python311/Scripts/output/md/Privat/Kunst Lyrik/Zitate - Brand eins.md'
b'C:/Users/uwewe/AppData/Roaming/Python/Python311/Scripts/output/md/Privat/Kunst Lyrik/Zitate - Controlling.md'
b'C:/Users/uwewe/AppData/Roaming/Python/Python311/Scripts/output/md/Privat/Kunst Lyrik/Zitate - Quellen.md'
> COMPILING INDEX FROM DIR STRUCTURE (C:\Users\uwewe\AppData\Roaming\Python\Python311\Scripts\output\html\obs.html\dir_index.html)
< COMPILING INDEX FROM DIR STRUCTURE: Done
> SECOND PASS HTML
< SECOND PASS HTML: Done
< COMPILING HTML FROM MARKDOWN CODE: Done

EXPORTING USER FILES

Is this config.yml correct?

config.yml.txt

from obsidian-html.

dwrolvink avatar dwrolvink commented on June 19, 2024

Does custom.css exist in the root of your vault?, ie at H:/Syncthing/Obsidian/custom.css?

If you press F12 and click on console, does it show errors?

Can you answer this please.

from obsidian-html.

merlinuwe avatar merlinuwe commented on June 19, 2024

Has it to be exactly this name custom.css? Because now it works.

b'C:/Users/uwewe/AppData/Roaming/Python/Python311/Scripts/output/md/Privat/Kunst Maltechniken/Zeichnen.md'
b'C:/Users/uwewe/AppData/Roaming/Python/Python311/Scripts/output/md/Privat/Kunst Maltechniken/Zeichnen - \xdcbung zum Schraffieren.md'
b'C:/Users/uwewe/AppData/Roaming/Python/Python311/Scripts/output/md/Privat/Kunst Lyrik/Zitate - Brand eins.md'
b'C:/Users/uwewe/AppData/Roaming/Python/Python311/Scripts/output/md/Privat/Kunst Lyrik/Zitate - Controlling.md'
b'C:/Users/uwewe/AppData/Roaming/Python/Python311/Scripts/output/md/Privat/Kunst Lyrik/Zitate - Quellen.md'
> COMPILING INDEX FROM DIR STRUCTURE (C:\Users\uwewe\AppData\Roaming\Python\Python311\Scripts\output\html\obs.html\dir_index.html)
< COMPILING INDEX FROM DIR STRUCTURE: Done
> SECOND PASS HTML
< SECOND PASS HTML: Done
< COMPILING HTML FROM MARKDOWN CODE: Done

EXPORTING USER FILES
Writing C:/Users/uwewe/AppData/Local/obsidianhtml/obsidianhtml/tmpdir/input/custom.css to C:/Users/uwewe/AppData/Roaming/Python/Python311/Scripts/output/html/custom.css (utf-8)
< EXPORTING USER FILES: Done

You can find your output at:
md: C:\Users\uwewe\AppData\Roaming\Python\Python311\Scripts\output\md
html: C:\Users\uwewe\AppData\Roaming\Python\Python311\Scripts\output\html

uwewe@Uwe-PC-SSD MINGW64 ~/AppData/Roaming/Python/Python311/Scripts

from obsidian-html.

merlinuwe avatar merlinuwe commented on June 19, 2024

But the graph is not showing.

from obsidian-html.

merlinuwe avatar merlinuwe commented on June 19, 2024

F12 console gives this:

image

from obsidian-html.

dwrolvink avatar dwrolvink commented on June 19, 2024

Does this happen on every page? I tested with your index page from unterricht, do you have this issue there?

Has it to be exactly this name custom.css? Because now it works.

When I showed you the code for the custom.css, I did state that you had to create that file in the root of your vault unless you changed the paths in the config.yml, which you did not do, so yes, if you configure a file export, the file needs to exist at that specific location.

from obsidian-html.

merlinuwe avatar merlinuwe commented on June 19, 2024

Yes, I cannot see the graph, independend of the chosen file. Examples I currently tested:

http://localhost:8888/BBZ/Unterricht%20CTA%20SuS/Arbeiten%20-%20CTA.html

http://localhost:8888/BBZ/Unterricht%20CTA%20SuS/Chemie%20-%20Formeln%20mathjax%20Unicode.html

http://localhost:8888/BBZ/Unterricht%20CTA%20SuS/Chemie%20-%20Smiles%20Formeln.html

(I find no file, where the graph shows.)

...

from obsidian-html.

dwrolvink avatar dwrolvink commented on June 19, 2024

What command did you use to start the webserver?

image

I remember that error, but I don't get it anymore with python -m http.server
obsidianhtml serve has this code added though:

    Handler.extensions_map.update(
        {
            ".js": "application/javascript",
        }
    )

which ought to fix this issue, you might try obsidianhtml serve --directory <directory path> --port 8080
(Be sure to go to http://localhost:8080 instead of http://localhost:8888)

from obsidian-html.

dwrolvink avatar dwrolvink commented on June 19, 2024

Might try this fix on Windows also:

As per: https://stackoverflow.com/questions/64013643/failed-to-load-module-script-the-server-responded-with-a-non-javascript-mime-ty

(Make sure that key Content Type exists in that location as shown in the registry editor.)
Not sure if this is the issue though, Windows tires me.

Though as said in that thread, just restarting the server with port 8080 (or any other) might also work? 🤔

from obsidian-html.

merlinuwe avatar merlinuwe commented on June 19, 2024

Njet.

I see this:

image

Shall I change Content Type to "text/javascript"? I do it ... restart the webserver with

python -m http.server --directory output/html 8080

и большая улыбка пробегает по моему лицу

image

;-)
Thank you again!

from obsidian-html.

merlinuwe avatar merlinuwe commented on June 19, 2024

(Your solution works with both ports, 8080 and 8888)

from obsidian-html.

dwrolvink avatar dwrolvink commented on June 19, 2024

nice!

from obsidian-html.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.