* Org sources and PDF files on Worg
@ 2013-05-21 18:13 Viktor Rosenfeld
2013-05-21 21:37 ` Jay Kerns
0 siblings, 1 reply; 17+ messages in thread
From: Viktor Rosenfeld @ 2013-05-21 18:13 UTC (permalink / raw)
To: emacs-orgmode
Hi,
I recently wrote a tutorial for the ox-koma-letter exporter [1] which
includes a link to an Org file [2] file and a PDF file [3] as examples.
The files are checked into the Worg repository, but they are not
available online. Is there something I have to do to enable this? At
first I thought the problem was related to the switchover to the new
exporter, but the issue persists.
Also, an old version of the tutorial at an old address [4] is still
online even though I've changed the location in the git repository. How
can I delete this version?
Cheers,
Viktor
[1] http://orgmode.org/worg/exporters/koma-letter-export.html
[2] http://orgmode.org/worg/sources/exporters/koma-letter-example.org
[3] http://orgmode.org/worg/images/ox-koma-letter/koma-letter-example.pdf
[4] http://orgmode.org/worg/org-tutorials/koma-letter-export.html
^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: Org sources and PDF files on Worg
2013-05-21 18:13 Org sources and PDF files on Worg Viktor Rosenfeld
@ 2013-05-21 21:37 ` Jay Kerns
2013-05-22 7:04 ` Bastien
2013-05-22 15:04 ` Viktor Rosenfeld
0 siblings, 2 replies; 17+ messages in thread
From: Jay Kerns @ 2013-05-21 21:37 UTC (permalink / raw)
To: emacs-orgmode; +Cc: Marc-Oliver Ihm
Hello Viktor,
On Tue, May 21, 2013 at 2:13 PM, Viktor Rosenfeld <listuser36@gmail.com> wrote:
> Hi,
>
> I recently wrote a tutorial for the ox-koma-letter exporter [1] which
> includes a link to an Org file [2] file and a PDF file [3] as examples.
> The files are checked into the Worg repository, but they are not
> available online. Is there something I have to do to enable this? At
> first I thought the problem was related to the switchover to the new
> exporter, but the issue persists.
>
> Also, an old version of the tutorial at an old address [4] is still
> online even though I've changed the location in the git repository. How
> can I delete this version?
>
> Cheers,
> Viktor
>
> [1] http://orgmode.org/worg/exporters/koma-letter-export.html
> [2] http://orgmode.org/worg/sources/exporters/koma-letter-example.org
> [3] http://orgmode.org/worg/images/ox-koma-letter/koma-letter-example.pdf
> [4] http://orgmode.org/worg/org-tutorials/koma-letter-export.html
>
I believe I can give a partial answer: it looks like Worg isn't
publishing right now, which suggests that there was a recent commit
which broke things. The search for the problem begins. Once the
error is identified and fixed, then things should get back to normal.
I've copied Marc on this message - we'll see if we can track the problem down.
Thanks for the report.
--
Jay Kerns
--
G. Jay Kerns, Ph.D.
Youngstown State University
http://people.ysu.edu/~gkerns/
^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: Org sources and PDF files on Worg
2013-05-21 21:37 ` Jay Kerns
@ 2013-05-22 7:04 ` Bastien
2013-05-22 13:03 ` Jay Kerns
2013-05-22 15:04 ` Viktor Rosenfeld
1 sibling, 1 reply; 17+ messages in thread
From: Bastien @ 2013-05-22 7:04 UTC (permalink / raw)
To: Jay Kerns; +Cc: Marc-Oliver Ihm, emacs-orgmode
Hi Jay and Marc,
Jay Kerns <gjkernsysu@gmail.com> writes:
> I believe I can give a partial answer: it looks like Worg isn't
> publishing right now, which suggests that there was a recent commit
> which broke things.
Apparently things broke because Org in ~/git/org-mode on the server
was not compiled (and autoloads not created etc.) I compiled Org
again and republished it. It should publish correctly now.
> The search for the problem begins. Once the
> error is identified and fixed, then things should get back to normal.
Don't want to steal your work :) Just thought I would fix this
because I may be the one who broke things by forgetting to compile
at some point. I checked the scripts in ~/bin/ and they do compile
normally. Also, I removed the FORCE flag in (defun publish-worg ...)
so that publishing does not republish everything.
HTH,
--
Bastien
^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: Org sources and PDF files on Worg
2013-05-22 7:04 ` Bastien
@ 2013-05-22 13:03 ` Jay Kerns
0 siblings, 0 replies; 17+ messages in thread
From: Jay Kerns @ 2013-05-22 13:03 UTC (permalink / raw)
To: Bastien; +Cc: Marc-Oliver Ihm, emacs-orgmode
On Wed, May 22, 2013 at 3:04 AM, Bastien <bzg@gnu.org> wrote:
> Hi Jay and Marc,
[snip]
> Don't want to steal your work :) Just thought I would fix this
> because I may be the one who broke things by forgetting to compile
> at some point. I checked the scripts in ~/bin/ and they do compile
> normally. Also, I removed the FORCE flag in (defun publish-worg ...)
> so that publishing does not republish everything.
>
> HTH,
Thanks, Bastien, yes, this helps a lot.
--
Jay
^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: Org sources and PDF files on Worg
2013-05-21 21:37 ` Jay Kerns
2013-05-22 7:04 ` Bastien
@ 2013-05-22 15:04 ` Viktor Rosenfeld
2013-05-23 7:51 ` Bastien
2013-05-23 7:57 ` Viktor Rosenfeld
1 sibling, 2 replies; 17+ messages in thread
From: Viktor Rosenfeld @ 2013-05-22 15:04 UTC (permalink / raw)
To: Jay Kerns; +Cc: Marc-Oliver Ihm, emacs-orgmode
Hi,
Jay Kerns wrote:
> Hello Viktor,
>
> On Tue, May 21, 2013 at 2:13 PM, Viktor Rosenfeld <listuser36@gmail.com> wrote:
> > Hi,
> >
> > I recently wrote a tutorial for the ox-koma-letter exporter [1] which
> > includes a link to an Org file [2] file and a PDF file [3] as examples.
> > The files are checked into the Worg repository, but they are not
> > available online. Is there something I have to do to enable this? At
> > first I thought the problem was related to the switchover to the new
> > exporter, but the issue persists.
> >
> > Also, an old version of the tutorial at an old address [4] is still
> > online even though I've changed the location in the git repository. How
> > can I delete this version?
> >
> > Cheers,
> > Viktor
> >
> > [1] http://orgmode.org/worg/exporters/koma-letter-export.html
> > [2] http://orgmode.org/worg/sources/exporters/koma-letter-example.org
> > [3] http://orgmode.org/worg/images/ox-koma-letter/koma-letter-example.pdf
> > [4] http://orgmode.org/worg/org-tutorials/koma-letter-export.html
> >
>
> I believe I can give a partial answer: it looks like Worg isn't
> publishing right now, which suggests that there was a recent commit
> which broke things. The search for the problem begins. Once the
> error is identified and fixed, then things should get back to normal.
That's not it. The publishing process was working when I last checked. I
just pushed a change and it's reflected in the published HTML file, i.e.
[1], but the links are still now working and the old file still exists.
Cheers,
Viktor
>
> I've copied Marc on this message - we'll see if we can track the problem down.
>
> Thanks for the report.
>
> --
> Jay Kerns
>
>
> --
> G. Jay Kerns, Ph.D.
> Youngstown State University
> http://people.ysu.edu/~gkerns/
>
^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: Org sources and PDF files on Worg
2013-05-22 15:04 ` Viktor Rosenfeld
@ 2013-05-23 7:51 ` Bastien
2013-05-23 8:02 ` Viktor Rosenfeld
2013-05-23 7:57 ` Viktor Rosenfeld
1 sibling, 1 reply; 17+ messages in thread
From: Bastien @ 2013-05-23 7:51 UTC (permalink / raw)
To: Viktor Rosenfeld; +Cc: emacs-orgmode, Marc-Oliver Ihm, Jay Kerns
Hi Viktor,
Viktor Rosenfeld <listuser36@gmail.com> writes:
>> I believe I can give a partial answer: it looks like Worg isn't
>> publishing right now, which suggests that there was a recent commit
>> which broke things. The search for the problem begins. Once the
>> error is identified and fixed, then things should get back to normal.
>
> That's not it. The publishing process was working when I last checked. I
> just pushed a change and it's reflected in the published HTML file, i.e.
> [1], but the links are still now working and the old file still
> exists.
I forgot to add some publishing projects during the migration,
namely worg-sources and worg-images. This should be fixed now.
Thanks,
--
Bastien
^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: Org sources and PDF files on Worg
2013-05-23 7:51 ` Bastien
@ 2013-05-23 8:02 ` Viktor Rosenfeld
2013-05-23 8:21 ` Bastien
0 siblings, 1 reply; 17+ messages in thread
From: Viktor Rosenfeld @ 2013-05-23 8:02 UTC (permalink / raw)
To: Bastien; +Cc: emacs-orgmode, Marc-Oliver Ihm, Jay Kerns
Hi Bastien,
Bastien wrote:
> Hi Viktor,
>
> Viktor Rosenfeld <listuser36@gmail.com> writes:
>
> >> I believe I can give a partial answer: it looks like Worg isn't
> >> publishing right now, which suggests that there was a recent commit
> >> which broke things. The search for the problem begins. Once the
> >> error is identified and fixed, then things should get back to normal.
> >
> > That's not it. The publishing process was working when I last checked. I
> > just pushed a change and it's reflected in the published HTML file, i.e.
> > [1], but the links are still now working and the old file still
> > exists.
>
> I forgot to add some publishing projects during the migration,
> namely worg-sources and worg-images. This should be fixed now.
Thanks for the fix. I can confirm that the links work now. (Did just
send a mail to that effect to the mailing list and then your message
arrived.)
However, the old version of the tutorial still shows at the old address.
I moved the file in the worg git repository from org-tutorials/ to
exporters/ but now there are two separate HTML copies. Do I have to do
something else to explicitly delete the old version?
Thanks again,
Viktor
>
> Thanks,
>
> --
> Bastien
>
^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: Org sources and PDF files on Worg
2013-05-23 8:02 ` Viktor Rosenfeld
@ 2013-05-23 8:21 ` Bastien
2013-05-23 15:48 ` Suvayu Ali
2013-05-23 17:06 ` Viktor Rosenfeld
0 siblings, 2 replies; 17+ messages in thread
From: Bastien @ 2013-05-23 8:21 UTC (permalink / raw)
To: Viktor Rosenfeld; +Cc: emacs-orgmode, Marc-Oliver Ihm, Jay Kerns
Hi Viktor,
Viktor Rosenfeld <listuser36@gmail.com> writes:
> However, the old version of the tutorial still shows at the old address.
> I moved the file in the worg git repository from org-tutorials/ to
> exporters/ but now there are two separate HTML copies. Do I have to do
> something else to explicitly delete the old version?
Er, this is a strong (and quite stupid) limitation of the publishing
engine: it does not delete files that exist from a previous publication.
I have absolutely no idea for a clever mechanism that would find the
files to delete.
We can delete them manually for now -- please send me the list of
.html files I need to delete.
--
Bastien
^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: Org sources and PDF files on Worg
2013-05-23 8:21 ` Bastien
@ 2013-05-23 15:48 ` Suvayu Ali
2013-05-23 17:54 ` Bastien
2013-05-23 17:06 ` Viktor Rosenfeld
1 sibling, 1 reply; 17+ messages in thread
From: Suvayu Ali @ 2013-05-23 15:48 UTC (permalink / raw)
To: emacs-orgmode
Hi Bastien,
On Thu, May 23, 2013 at 10:21:23AM +0200, Bastien wrote:
> Viktor Rosenfeld <listuser36@gmail.com> writes:
>
> > However, the old version of the tutorial still shows at the old address.
> > I moved the file in the worg git repository from org-tutorials/ to
> > exporters/ but now there are two separate HTML copies. Do I have to do
> > something else to explicitly delete the old version?
>
> Er, this is a strong (and quite stupid) limitation of the publishing
> engine: it does not delete files that exist from a previous publication.
>
> I have absolutely no idea for a clever mechanism that would find the
> files to delete.
I believe you can use git for this. Try
$ git clean -n -x
to see the files that will be removed. If you are happy with it, run
$ git clean -f -x
Please note the subtle difference between -x and -X. -x cleans *all*
untracked files, whereas -X cleans only files explicitly ignored by
.gitignore. I would advise to put the published files as ignored:
*.html
*.html~
Then you can safely run
$ git clean -f -X
and potentially keep untracked manually created files
(e.g. .gitattributes). This could then be put in the post-commit hook
that publishes Worg.
Hope this helps,
--
Suvayu
Open source is the future. It sets us free.
^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: Org sources and PDF files on Worg
2013-05-23 15:48 ` Suvayu Ali
@ 2013-05-23 17:54 ` Bastien
2013-05-23 18:09 ` Suvayu Ali
2013-05-24 0:46 ` Rasmus
0 siblings, 2 replies; 17+ messages in thread
From: Bastien @ 2013-05-23 17:54 UTC (permalink / raw)
To: Suvayu Ali; +Cc: emacs-orgmode
Hi Suvayu,
Suvayu Ali <fatkasuvayu+linux@gmail.com> writes:
> I believe you can use git for this. Try
>
> $ git clean -n -x
I didn't know this git command, neat!
The problem we were discussing is different: it's about deleting
HTML pages that have been published and that have no corresponding
.org file anymore -- the way I do this for other projects of mine
is to delete all HTML files and republish my project, but we don't
want to take that route here...
--
Bastien
^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: Org sources and PDF files on Worg
2013-05-23 17:54 ` Bastien
@ 2013-05-23 18:09 ` Suvayu Ali
2013-05-24 0:46 ` Rasmus
1 sibling, 0 replies; 17+ messages in thread
From: Suvayu Ali @ 2013-05-23 18:09 UTC (permalink / raw)
To: Bastien; +Cc: emacs-orgmode
On Thu, May 23, 2013 at 07:54:12PM +0200, Bastien wrote:
> Hi Suvayu,
>
> Suvayu Ali <fatkasuvayu+linux@gmail.com> writes:
>
> > I believe you can use git for this. Try
> >
> > $ git clean -n -x
>
> I didn't know this git command, neat!
>
> The problem we were discussing is different: it's about deleting
> HTML pages that have been published and that have no corresponding
> .org file anymore -- the way I do this for other projects of mine
> is to delete all HTML files and republish my project, but we don't
> want to take that route here...
Ahh sorry, I realised the problem but overlooked that this removes all
html files! It's end of the day after all :-p.
--
Suvayu
Open source is the future. It sets us free.
^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: Org sources and PDF files on Worg
2013-05-23 17:54 ` Bastien
2013-05-23 18:09 ` Suvayu Ali
@ 2013-05-24 0:46 ` Rasmus
2013-05-24 17:31 ` Bastien
1 sibling, 1 reply; 17+ messages in thread
From: Rasmus @ 2013-05-24 0:46 UTC (permalink / raw)
To: emacs-orgmode
Bastien <bzg@gnu.org> writes:
> Hi Suvayu,
>
> Suvayu Ali <fatkasuvayu+linux@gmail.com> writes:
>
>> I believe you can use git for this. Try
>>
>> $ git clean -n -x
>
> I didn't know this git command, neat!
>
> The problem we were discussing is different: it's about deleting
> HTML pages that have been published and that have no corresponding
> .org file anymore -- the way I do this for other projects of mine
> is to delete all HTML files and republish my project, but we don't
> want to take that route here...
Couldn't we just compare input and output? Or is that not safe
enough? E.g. in an over-simplistic form obtain dead pages via
something like this:
#+BEGIN_SRC emacs-lisp
(let* ((html '("dir1/my-page1.html"
"dir2/my-page2.html"
"dir2/my-page3.html"
"dir2/my-page4.html"
"dir3/my-page4.html"))
(org '("dir1/my-page1.org"
"dir2/my-page2.org"
"dir3/my-page4.org"))
(html-sans-extensions (mapcar 'file-name-sans-extension html))
(org-sans-extensions (mapcar 'file-name-sans-extension org)))
(mapcar (lambda (x) (concat x ".html"))
(dolist (x org-sans-extensions html-sans-extensions)
(setq html-sans-extensions (remove x html-sans-extensions)))))
#+END_SRC
--
A clever person solves a problem. A wise person avoids it
^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: Org sources and PDF files on Worg
2013-05-24 0:46 ` Rasmus
@ 2013-05-24 17:31 ` Bastien
0 siblings, 0 replies; 17+ messages in thread
From: Bastien @ 2013-05-24 17:31 UTC (permalink / raw)
To: Rasmus; +Cc: emacs-orgmode
Hi Rasmus,
Rasmus <rasmus@gmx.us> writes:
> Couldn't we just compare input and output? Or is that not safe
> enough? E.g. in an over-simplistic form obtain dead pages via
> something like this:
If you can write a general function that will work for any defined
publishing project, that'd be cool. Maybe as an addition for
worg/org-hacks.org.
--
Bastien
^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: Org sources and PDF files on Worg
2013-05-23 8:21 ` Bastien
2013-05-23 15:48 ` Suvayu Ali
@ 2013-05-23 17:06 ` Viktor Rosenfeld
2013-05-23 17:52 ` Bastien
1 sibling, 1 reply; 17+ messages in thread
From: Viktor Rosenfeld @ 2013-05-23 17:06 UTC (permalink / raw)
To: Bastien; +Cc: emacs-orgmode
Hi Bastien,
Bastien wrote:
> Hi Viktor,
>
> Viktor Rosenfeld <listuser36@gmail.com> writes:
>
> > However, the old version of the tutorial still shows at the old address.
> > I moved the file in the worg git repository from org-tutorials/ to
> > exporters/ but now there are two separate HTML copies. Do I have to do
> > something else to explicitly delete the old version?
>
> Er, this is a strong (and quite stupid) limitation of the publishing
> engine: it does not delete files that exist from a previous publication.
>
> I have absolutely no idea for a clever mechanism that would find the
> files to delete.
>
> We can delete them manually for now -- please send me the list of
> .html files I need to delete.
The files are:
- http://orgmode.org/worg/org-tutorials/koma-letter-export.html
- http://orgmode.org/worg/org-tutorials/koma-letter-example.html
Sorry for the inconvenience.
Is there also a way not to publish Org files to HTML which are checked
into the Worg repository? I am asking because the file
http://orgmode.org/worg/exporters/koma-letter-example.html could also be
deleted. It is created from
http://orgmode.org/worg/sources/exporters/koma-letter-example.org which
is included as an example in
http://orgmode.org/worg/sources/exporters/koma-letter-export.org. But
the HTML file is not linked anywhere.
Cheers,
Viktor
>
> --
> Bastien
>
^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: Org sources and PDF files on Worg
2013-05-22 15:04 ` Viktor Rosenfeld
2013-05-23 7:51 ` Bastien
@ 2013-05-23 7:57 ` Viktor Rosenfeld
1 sibling, 0 replies; 17+ messages in thread
From: Viktor Rosenfeld @ 2013-05-23 7:57 UTC (permalink / raw)
To: emacs-orgmode
Hi everybody,
Viktor Rosenfeld wrote:
> > > I recently wrote a tutorial for the ox-koma-letter exporter [1] which
> > > includes a link to an Org file [2] file and a PDF file [3] as examples.
> > > The files are checked into the Worg repository, but they are not
> > > available online. Is there something I have to do to enable this? At
> > > first I thought the problem was related to the switchover to the new
> > > exporter, but the issue persists.
> > >
> > > Also, an old version of the tutorial at an old address [4] is still
> > > online even though I've changed the location in the git repository. How
> > > can I delete this version?
> > >
> > > Cheers,
> > > Viktor
> > >
> > > [1] http://orgmode.org/worg/exporters/koma-letter-export.html
> > > [2] http://orgmode.org/worg/sources/exporters/koma-letter-example.org
> > > [3] http://orgmode.org/worg/images/ox-koma-letter/koma-letter-example.pdf
> > > [4] http://orgmode.org/worg/org-tutorials/koma-letter-export.html
> > >
> >
> > I believe I can give a partial answer: it looks like Worg isn't
> > publishing right now, which suggests that there was a recent commit
> > which broke things. The search for the problem begins. Once the
> > error is identified and fixed, then things should get back to normal.
>
> That's not it. The publishing process was working when I last checked. I
> just pushed a change and it's reflected in the published HTML file, i.e.
> [1], but the links are still now working and the old file still exists.
So I checked again this morning and now the links to the source file and
the PDF example both work. Not sure if it is because of a delay (the
commit is only now listed on the worg homepage) or if somebody did
actively fix something; in case of the latter, many thanks.
The old version of the tutorial is still available at the old address
which is a minor annoyance because it is quickly getting out of date.
But I'm glad that the links are working.
Cheers,
Viktor
^ permalink raw reply [flat|nested] 17+ messages in thread
end of thread, other threads:[~2013-05-24 17:31 UTC | newest]
Thread overview: 17+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-05-21 18:13 Org sources and PDF files on Worg Viktor Rosenfeld
2013-05-21 21:37 ` Jay Kerns
2013-05-22 7:04 ` Bastien
2013-05-22 13:03 ` Jay Kerns
2013-05-22 15:04 ` Viktor Rosenfeld
2013-05-23 7:51 ` Bastien
2013-05-23 8:02 ` Viktor Rosenfeld
2013-05-23 8:21 ` Bastien
2013-05-23 15:48 ` Suvayu Ali
2013-05-23 17:54 ` Bastien
2013-05-23 18:09 ` Suvayu Ali
2013-05-24 0:46 ` Rasmus
2013-05-24 17:31 ` Bastien
2013-05-23 17:06 ` Viktor Rosenfeld
2013-05-23 17:52 ` Bastien
2013-05-23 18:07 ` Viktor Rosenfeld
2013-05-23 7:57 ` Viktor Rosenfeld
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).