Netlify CMS and Enterprise Github instance - netlify-cms

Can Netlify CMS work with a private Enterprise Github instance (not github.com)? Every tutorial I've seen shows it with public Github and the configuration documentation doesn't mention anything about it.

The api_root configuration option in the backend config section is what you're looking for:
https://www.netlifycms.org/docs/backends-overview#backend-configuration

Related

Can I edit the contents of my static website after publishing?

I want to publish a website through google domains.
The problem is that I am shifting my office to a new location so, I want to change the map on my website after one month.
Are there any possibilities to edit the website after publishing?
If it is a static website, sure you can update the information you like. Most web hosting services usually use GitHub as a platform for developers to host it. Meaning, you just need to make the necessary changes to your file, upload to Github. Then the hosting services will detect the change and update your site accordingly

Use multiple themes on one website jeykll

I have recently found out about jekyll, and want to make a project landing page with it. I would like to have a home page using one theme (e.g. ubuild) and have another page for the docs (accessed via a navigation bar at the top) that uses a different theme (e.g. just-the-docs). How can I go about doing this?
EDIT: I want to use Github Pages for this.
Since you plan to use one of the themes on just a single page, I think the best solution would be to use two base layouts instead of two themes.
It will take some minor work initially, but will greatly ease future maintenance.
First set up the site to render just-the-docs theme for all pages including the landing page. Then modify _layouts/home.html to be a parent layout (like the default layout)
to render the markup from the ubuild.. theme.
I solved this with help from #JoostS's answer but with a few modifications:
Make an organization on GitHub pages with a repo called <org-name>.github.io. This repo should contain the theme for the home page (ubuild in my case) and all the content for it.
Make another repo with a jeykll site, called docs. This site should have the theme you want for the other page (just-the-docs in my case) and all the content along with it.
In the docs repo, add baseurl: "/docs" to your _config.yml
The <org-name>.github.io repo, should now be hosted at <org-name>.github.io/:
The docs repo should now be hosted at the <org-name>.github.io/docs url:
To link to the docs page, you should just be able to use /docs now.
The solution is to create two separate websites. The first site contains just the homepage and should be deployed to the root of your web folder. The second site contains all docs and should be deployed to a subdirectory, like '/docs/'. You might want to use baseurl for this: https://byparker.com/blog/2014/clearing-up-confusion-around-baseurl/
I do not think you can use this solution on Github pages. You can TRY to add the same CNAME to both repositories, as I am not 100% sure. Any other static hosting environment should work.
You can link from the docs to the homepage by linking to '/'. You can link from the homepage to the docs by linking to '/docs/pagename/' (assuming you use permalink: pretty).
The simplest way to maintain two layouts on the same site using Jekyll with GitHub Pages is for you to create a new repository for the new layout, so the main site is in a GitHub organization and the pages that need to use a different layout must be in your repositories.
However, if you are not using GitHub, just jekyll, just configure each folder as a new Jekyll project, and direct them to write to the respective subfolders in the _site folder. For everything to work out you need to start Jekyll Server from the main folder, and then build each subfolder separately, so it will update without removing the main one

API to get course category in moodle

I am working on a moodle project. I have created course categories on moodle but i want to display this course i have created using webservice (REST to be precise). How can I do this please?
You should use the Moodle webservices to do this.
Please read the docs to see how to enable this for your Moodle instance.
After it's been enabled, you can use the test client available from Github as base for development: https://github.com/moodlehq/sample-ws-clients/tree/master/PHP-REST.
You should see if you are able to add this as library in CI, shouldn't be that difficult though.

Getting 404 on landing page for Octopress on Github

I followed Octopress original documentation and this blog to setup on Github pages. However once I deploy it and go to my blog url I'm getting 404.
I verified the setup by running it locally on port 4000 and it's fine. Would appreciate any help to make it work. Following is the link for the source file.
I see you GitHub page at https://github.com/aniruddhabarapatre.
So your GitHub pages should be at http://aniruddhabarapatre.github.io/, not http://aniruddhab.github.io/.
The article you reference does mention:
Create a new GitHub repository. If you are creating a personal blog create a repo called:
username.github.com
With 'username' being your GitHub account username (here aniruddhabarapatre).
Project pages (mentioned by Joel Glovier in the comments) is a good fit for your case, allowing you to:
define a gh-pages branch in your https://github.com/aniruddhabarapatre/aniruddhab.github.io repo
find the content of that branch published in http://aniruddhabarapatre.github.io/aniruddhab.github.io (meaning you might want to change the name of that aniruddhab.github.io repo)
But the idea remains: you already have one User Page. You cannot define a second one with the same account. Only project pages (one main page per project).

Creating a new Blog with Octopress

I am reading this tutorial to create a new blog using the octopress
http://octopress.org/docs/setup/
I have successfully installed all the reuqired software and also created a heroku account.
I have also completed this step of configuring octopress with heroku
http://octopress.org/docs/deploying/heroku/
Now I am at the step where I have to configure the _config.yml file.
http://octopress.org/docs/configuring/
I am a little confused here as to what should I really put in this file.
Can anyone share a sample or some guidance on how can I complete this step and go about my first post?
This is how I have it for an Octopress in Heroku:
In the config.yml fill in your url, title, subtitle, author, description
The rest of the defaults should work.
If you have a custom domain you have to add a CNAMe file.
To create a new post you use rake as in rake new_post['Name of awesome post']
Then open that post. It is under the folder source/_posts
Add contents after the yml header
Save file.
Then follow the steps of deployment.
I documented an octopress to heroku deployment on my blog here:
http://www.tomordonez.com/blog/2012/07/22/set-up-a-blog-with-an-html5-template-in-octopress-and-heroku-cloud-service/
There is no mystery to it. If you have more questions tweet me #tomordonez or reply back with your results

Resources