Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No html pages generated in master #196

Open
moocing opened this issue Aug 4, 2016 · 5 comments
Open

No html pages generated in master #196

moocing opened this issue Aug 4, 2016 · 5 comments

Comments

@moocing
Copy link

moocing commented Aug 4, 2016

Environment

Ubuntu 16.04, Emacs 24.5.1, Git 2.7.4. org-page and a few other packages were installed by M-x package-install package-name via Emacs package management system. Ruby and jekyll were installed by apt-get as I was first figuring out how to blog with jekyll. Don't think this matters.

Emacs Configuration in .emacs:

(require 'org-page)
(setq op/repository-directory "~/moocing.github.io")
(setq op/site-domain "http://moocing.github.io")
(setq op/personal-github-link "https://github.com/moocing")
(setq op/site-main-title "Orging ...")
(setq op/site-sub-title "About Universe")

Steps:

  1. First create moocing.github.io directory as local repository. Initialize it by git init and then set user email/name. Initialize it by M-x op/new-repository causes error as I don't set user email globally across different git repository.

  2. M-x op/new-repository and provide moocing.github.io as the repository name. A README, a few org files and a blog directory are created and committed in local repository.

  3. Create remote moocing.github.io in my GitHub account, without including README.md. This makes the remote repository empty and ready for pushing from local repository without local pulling from remote first.

  4. Set remote repository as the remote of local repository
    git remote add origin [email protected]:moocing/moocing.github.io.git

  5. Create first org blog by M-x op/new-post.
    Category: blog
    filename: first-post.org
    Title: First Org Blog
    URI: /blog/%y/%m/%d/first-org-blog
    Keywords: blogging
    Tags: org, emacs
    Description: first org blog

    first-post.org is created in blog directory in source branch, with meta info from user input. Edit first-post.org a little to have some content in org format.

  6. Publish by M-x op/do-publication.
    Publish all org-files (y or n) y
    Publish to directory? (original repo if not) (y or n) n
    Auto-commit to repo? (y or n) y
    Auto-push to repo? (y or n) y

    A few seconds later, Emacs prompts publish finished.

After all the above 6 steps, https://moocing.github.io can be visited. But clicking Blog link on top left gives 404 error. I looked at blog directory in master, no HTML pages are generated, and no directories as YYYY/MM/DD was created.

Is there anything I missed?

Many thanks!

@sillykelvin
Copy link
Collaborator

Did you commit the post by git after step 5?

@moocing
Copy link
Author

moocing commented Aug 19, 2016

Thanks for the response.

Yes, I think so. I remember I could see the post in the local repository (in source branch). Later I found out that a few publishing functions name were changed after org-mode 8.0. I am using org-mode 8.3. Maybe that was why? Check out http://orgmode.org/worg/org-8.0.html

Anyway org-page's idea was great. Hope some day I can use org-page in org-mode 8 after you got the time to solve the compatibility issues.

@hedinasr
Copy link

hedinasr commented Oct 9, 2016

Up please !

@sillykelvin
Copy link
Collaborator

Org-page do support org-mode 8.x, I think there should be some directory path related problems, can you post your source repo somewhere?

@jixiuf
Copy link
Contributor

jixiuf commented Feb 6, 2017

#207 maybe related
try
(setq op/repository-directory "~/moocing.github.io/") ;;ends with /

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

4 participants