Skip to content

Commit

Permalink
Fix info top page (#165)
Browse files Browse the repository at this point in the history
* Fix info top page

* Parametrize texi top title
  • Loading branch information
10sr authored May 9, 2018
1 parent 1614f17 commit e314a7c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# -*- Makefile -*-

TEXI_TOP := EditorConfig Emacs Plugin

EMACS = emacs
PANDOC = pandoc

Expand Down Expand Up @@ -32,7 +34,8 @@ doc/editorconfig.texi: README.md doc/header.txt
mkdir -p doc
tail -n +4 $< | $(PANDOC) -s -f markdown -t texinfo -o $@.body
cat doc/header.txt $@.body >$@

sed -i.bak -e 's/^@top .*/@top ${TEXI_TOP}/' $@
rm -f $@.body $@.bak

test: test-ert test-core test-metadata $(OBJS)
$(EMACS) $(BATCHFLAGS) -l editorconfig.el
Expand Down
2 changes: 1 addition & 1 deletion doc/editorconfig.texi
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
@paragraphindent 0
@end ifnottex
@node Top
@top Top
@top EditorConfig Emacs Plugin

@menu
* EditorConfig Emacs Plugin::
Expand Down

0 comments on commit e314a7c

Please sign in to comment.