Help
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Pilot Lvl 1
Message 1 of 7

syntax for Edit Me button in a Jekyll site

Solved! Go to Solution.

EditMe.jpg

 

I'm trying to update the url for the Edit Me button (above) on a Jekyll site I'm building, by entering the basepath URL in the config.yml file.

 

 

I tried using the full URL:

 

https://github.com/[profilename]/[reponame].git

 

And all kinds of combinations of /[profilename]/[reponame]

 

I have published the site using a cname record to <docs.mysitename.com>

 

But every combination produces a 404 error. Any tips or guidance appreciated.

6 Replies
Highlighted
Community Manager
Message 2 of 7

Re: syntax for Edit Me button in a Jekyll site

Hi @Texterity,

 

Is your repository public? If so, could you share a link to it so that we can check out the code you're working with? I think that will help for troubleshooting this.

 

Thanks!

Highlighted
Pilot Lvl 1
Message 3 of 7

Re: syntax for Edit Me button in a Jekyll site

Actually no - which might be part of the problem, now you mention it! I will create a public version and try and again, and if that doesn't solve the problem, then I will post it. 

Pilot Lvl 1
Message 4 of 7

Re: syntax for Edit Me button in a Jekyll site

OK I've made that repo public at http://docs.texterity.com.au (It's a copy of the Jekyll Documentation template from the idratherbewriting blog.) There are currently two branches, Master and Review. I had the idea that I could point the Edit Me link to the Review branch. But the desired effect is that, anonymous users (i.e. not signed in to Github) can propose edits. 

Highlighted
Pilot Lvl 1
Message 5 of 7

Re: syntax for Edit Me button in a Jekyll site

Incidentally in the idratherbewriting template the basepath url is

tomjoht/documentation-theme-jekyll/blob/gh-pages/

 

Is the term 'blob' required for this expression?

Highlighted
Solution
Pilot Lvl 1
Message 6 of 7

Re: syntax for Edit Me button in a Jekyll site

Answered my own question! Open the repo and branch that you want to be the destination for the edit path, then copy the URL between /yourid and the file name. That becomes the base path for the config.yml.

Highlighted
Community Manager
Message 7 of 7

Re: syntax for Edit Me button in a Jekyll site

Hey @Texterity, Thank you for coming back and sharing what worked for you!


I hope this helps,
Andrea

Mark helpful posts with Accept as Solution to help other users locate important info. Don't forget to give Kudos for great content!