I literally take the /lib folder push it on github and turn on hosting and it doesn't work what im i doing wrong.Help! #504
Replies: 7 comments 17 replies
-
Okay so I think there is a bigger problem here. The lib folder only includes a library of information used by the website. Not the website itself. This means you haven't actually uploaded the website. The website is exported alongside the lib folder as folders and html files. You need both the lib folder and the html files. If you export into an empty folder you should upload every file that shows up in that folder. Additionally, to create an index file, you just create a note directly inside obsidian itself and call it index. This is only needed if you want a home page, you can always access any page through a direct URL. |
Beta Was this translation helpful? Give feedback.
-
So this means that i have to create a site and the lib folder to it. But what should i use to create it so i wont face problems. I just need to host it and be able to acess my canvas. Can you send me example of a site as gut repository thats has canvas in it so i could recreate it. I need to host the canvas only and whenever i export something new where do i add the new lib folder in my site for it to show.Lets say a second canvas. do i just stack lib folder 1 lib folder 2 or ? |
Beta Was this translation helpful? Give feedback.
-
To create the site you just export files using the plugin. It should create the site and the lib folder. How are you selecting which files you want to export? When you want to export a second file just select both files and hit export it will add the new one to the site. |
Beta Was this translation helpful? Give feedback.
-
no when i export it i get only the lib folder nothing else and when i load the lib folder in github and host it nothing happens so what do i have to add as addition to the lib folder can you send me an example . A git that has the setup on. |
Beta Was this translation helpful? Give feedback.
-
how do i add more files to the existing composition. Lets say i generate files in obsidian again . it gives me a lib foler again how do i add the files so it shows up on the same page. First i export my canvas but after that i export some notes and i get the notes in lib folder same as the first time where do i put that new lib folder or the files in it. In the same directories or i have to separate them. |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
For anyone who comes across this again, I had the same issue and I don't feel like the answer here is specific enough for noobs (like me). You have 2 Options: PS- if you know HTML, I'm sure you could make something more awesome. I'm a noob and just want to share the pictures of dragons we killed with my party. The code for the Index.html file (do not have the export create it as it will not redirect properly): <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Welcome to My Campaign Notes</title>
<meta http-equiv="refresh" content="0; url=210-219-campaigns/214-winter-spelljammer/session-reports/2023-01-14-session-1.html">
</head>
<body>
<p>If you are not redirected automatically, follow this <a href="210-219-campaigns/214-winter-spelljammer/session-reports/2023-01-14-session-1.html">link to the session report</a>.</p>
</body>
</html> |
Beta Was this translation helpful? Give feedback.
-
Where and what do i need to add something for it to work. I tried adding an empty index.html file for the hosting to work but it still doesn't can you upload a git repository example of how the files should be composed. I take what i get from the plugin export and i add ut but i don't work i added a index.html both outside and inside the lib folder but ut didnt work what am i doing wrong.
Beta Was this translation helpful? Give feedback.
All reactions