Giter Club home page Giter Club logo

Comments (16)

Mara-Li avatar Mara-Li commented on July 3, 2024 1

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 :

image

(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.

Mara-Li avatar Mara-Li commented on July 3, 2024 1

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.

Mara-Li avatar Mara-Li commented on July 3, 2024

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.

Mara-Li avatar Mara-Li commented on July 3, 2024

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.

jonathan-hase avatar jonathan-hase commented on July 3, 2024

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
image

So I checked it out and saw a stupid error: a space in front of my username ... *headdesk*
image

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.

jonathan-hase avatar jonathan-hase commented on July 3, 2024

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:
image
But then nothing happens.

Also i checked my pages setting and everything is as it should be:
image

What am I'm doing wrong? o.o

from obsidian-github-publisher.

Mara-Li avatar Mara-Li commented on July 3, 2024

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.

jonathan-hase avatar jonathan-hase commented on July 3, 2024

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.

Mara-Li avatar Mara-Li commented on July 3, 2024

No worry ! It's okay !
Could You check Setting → Actions → General and check if workflow have the permission of reading and writing ?
image

On my side, after this edit, using the workflow successfully run ci

from obsidian-github-publisher.

jonathan-hase avatar jonathan-hase commented on July 3, 2024

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.

Mara-Li avatar Mara-Li commented on July 3, 2024

I really, really don't understand, as it works on my side ;_;

from obsidian-github-publisher.

Mara-Li avatar Mara-Li commented on July 3, 2024

Could you try to force the workflow to run in Actionsci ?

from obsidian-github-publisher.

jonathan-hase avatar jonathan-hase commented on July 3, 2024

Hi Mara-Li, I tried it and it just gives me the banner

image

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.

Mara-Li avatar Mara-Li commented on July 3, 2024

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.

jonathan-hase avatar jonathan-hase commented on July 3, 2024

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:

image

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.

Mara-Li avatar Mara-Li commented on July 3, 2024

Thank you for the update and reply !

from obsidian-github-publisher.

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.