Comments (16)
Normally, the file is put un your source folder.
In the workflows folder there is a file named ci
that run the conversion to mkdocs. This conversion will create a new file in notes
folder.
To activate the build gh-pages, check if the branch is correctly setup in your github repo settings, as bellow :
(don't worry about the custom domain btw)
Also I will update the plugin to trim any Whitespace in the settings, preveting future problem !
from obsidian-github-publisher.
It's strange because, on my side, any workflow run without problem. For example, in your repo, mkdocs build never run or it needs to after the first edit of mkdocs.yml
from obsidian-github-publisher.
Hello !
The error from the plugin is not linked with Github page or the configuration in your mkdocs.yml.
So ! Let's investigate that.
First, could you please provide the contents of your note ?
Secondly, when trying to Share the note, can you Share with me the error ?
To get the error, open the dev console with CTRL + SHIFT + I.
from obsidian-github-publisher.
Also, to activate the github page, go to settings (of the repo)→ pages.
Here, check if every thing is correctly configured. You need to have the gh-pages in the branch for the docs !
from obsidian-github-publisher.
Hi Mara-Li,
I created a clean gh-pages branch with this commands on github desktop:
git checkout --orphan gh-pages
git rm -rf --dry-run .
git rm -rf .
echo "My GitHub Page" > index.html
git add .
git commit -a -m "First pages commit"
git push origin gh-pages
The result is a clean github-pages webpage at https://jonathan-hase.github.io/mt-2022/
The content of my note README.md is
---
share: true
---
Testpage
(How is the startpage declared? I guess by calling it README or index... or am I wrong?)
The error inside the console is
So I checked it out and saw a stupid error: a space in front of my username ... *headdesk*
After I corrected the error, the note got sucessfully uploaded. What do I have to do next in order to get the note displayed on my github-pages website?
Thanks so much for your help!!
- Jonathan
from obsidian-github-publisher.
Thanks for adding it to the to-do's :) The thing with the github-action... I hoped the ci-action would be triggered each time I push my notes from inside obsidian into the source folder (with your plugin). But it was not. So I tried to start it manually and I got the message:
But then nothing happens.
Also i checked my pages setting and everything is as it should be:
What am I'm doing wrong? o.o
from obsidian-github-publisher.
It's pretty strange, as the workflow must be triggered by the plugin… Also, it's seems that the mkdocs never be run.
I will investigate on my side using a fork of your blog, checking what happened. I will update you asap when I found the error
from obsidian-github-publisher.
I am sorry, that I am of no help here. Somehow the actions are not triggered by push. Super random... I followed each step of your instruction https://github.com/Mara-Li/obsidian-mkdocs-publisher-plugin/#quick-installation-tutorial
from obsidian-github-publisher.
No worry ! It's okay !
Could You check Setting → Actions → General
and check if workflow have the permission of reading and writing ?
On my side, after this edit, using the workflow successfully run ci
from obsidian-github-publisher.
Okay, I changed the permissions. After using Template or Fork of your repo the action permissions are set to Read-only and there is no permission in "Allow GitHub Actions to approve pull requests". So I changed that.
I was curious if a fork of your template changes something. https://github.com/jonathan-hase/fork-test
After I changed the permissions in (fork-test) and (mt-2022), I updated the mkdocs.yml and pushed my README.md note. But again nothing happened. Also starting the ci action manually does nothing.
from obsidian-github-publisher.
I really, really don't understand, as it works on my side ;_;
from obsidian-github-publisher.
Could you try to force the workflow to run in Actions
→ ci
?
from obsidian-github-publisher.
Hi Mara-Li, I tried it and it just gives me the banner
and than nothing happens. This is mysterious..
Just to be shure: I dont need anything other than a github-repo with your template and your plugin for obsidian?
from obsidian-github-publisher.
Yeah, normally you don't get nothing more.
I really don't understand why workflow don't run.
Could you try to rename the workflow file ? Like ci-> ci2 or Something like that.
I check Google and Other helping site and found NOTHING about our problem.
from obsidian-github-publisher.
Hi Mara-Li,
in the meanwhile I tested your actions with my second github account and it immediately worked. After checking every setting in my personal settings and the repo settings for the last time, I wrote to the github support. As it seemed, my account was not activated for actions by github:
Everything works like a charm now. Thank you so much for your help!! It was not a bug in your code in the end.
from obsidian-github-publisher.
Thank you for the update and reply !
from obsidian-github-publisher.
Related Issues (20)
- [Bug]: Files uploading with empty content HOT 6
- Set a specific options for an entire folder/multiple file
- [Bug]: When "Sluglify anchor in markdown links" is turned on, the Chinese characters of the anchor content will be deleted. HOT 4
- [Bug]: frontmatter repeat HOT 9
- [Bug]: Internal links grayed out / displayed as class=" not found" on GH Pages HOT 15
- [FR]: Make Dataview conversion compatible with Plugin Groups plugin HOT 3
- [Bug]: Couldn't upload Attachments with Obsidian folder structure while using the Folder Path replacer HOT 1
- [Bug]: Compatibility issue with Excalidraw plugin HOT 6
- [FR]: Option to use different github tokens for additional repos HOT 2
- [FR]: Convert Inline Dataview Queries to Markdown HOT 10
- [Bug]: Cannot use repository on Github Enterprise instance with rate limiting disabled. HOT 12
- [Bug]: Folder Path & File Name Replacer doesn't work on dataview content HOT 3
- [Bug]: Broken link HOT 2
- [Bug]: excalidraw is transformed to svg,bug the link path is not changed HOT 2
- [FR]: 'Delete all before publish' option HOT 1
- [Bug]: [[Wikilinks]] to [MDlinks](links) not working with headers links HOT 4
- [FR]: Allow upload of files not natively handled by Obsidian HOT 5
- [Bug]: File name replacement regex applied to attachment file paths HOT 2
- [Bug]: When trying to upload one note all linked notes reuploaded HOT 1
- [FR]: upload attachment in the same folder of md file HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from obsidian-github-publisher.