That works.
I tried with narrowing and that works.
And that exported to hd2.html.. But this does not fit my requirement.. I need to specify the export file name to be different for different subtrees. So that publishing the whole project "eless-all" would put stuff in their correct files in one go:
(setq org-publish-project-alist
`(;; HTML
("eless-html"
:base-directory ,eless-root-dir
:with-tags nil
:exclude-tags ("noexport" "readme" "wiki")
:publishing-function org-html-publish-to-html
:publishing-directory ,eless-doc-dir)
;; Info
("eless-info"
:base-directory ,eless-root-dir
:with-tags nil
:exclude-tags ("noexport" "readme" "wiki")
:publishing-function org-texinfo-publish-to-texinfo
:publishing-directory ,eless-doc-dir
:completion-function my/org-texinfo-publish-to-info)
;; eless script
("eless-tangle"
:base-directory ,eless-root-dir
:publishing-function org-babel-tangle-publish
:publishing-directory ,eless-root-dir)
;; README.md
("eless-readme"
:base-directory ,eless-root-dir
:with-toc nil
:with-tags nil
:select-tags ("readme") ;Cannot have hyphens in tags!
:publishing-function org-gfm-publish-to-gfm
:publishing-directory ,eless-root-dir
:completion-function eless/readme-completion-fn)
;; CONTRIBUTING.md
("eless-contributing"
:base-directory ,eless-root-dir
:with-toc nil
:with-tags nil
:select-tags ("contributing") ;Cannot have hyphens in tags!
:publishing-function org-gfm-publish-to-gfm
:publishing-directory ,eless-root-dir
:completion-function eless/contributing-completion-fn)
;; Wiki Pages
("eless-wiki-tcsh"
:base-directory ,eless-root-dir
:with-toc nil
:with-tags nil
:select-tags ("wikitcsh") ;Cannot have hyphens in tags!
:publishing-function org-gfm-publish-to-gfm
:publishing-directory ,eless-wiki-dir
:completion-function eless/wiki-tcsh-completion-fn)
("eless-wiki"
:components ("eless-wiki-tcsh"))
("eless-all-docs"
:components ("eless-html" "eless-info"
"eless-readme" "eless-contributing" "eless-wiki"))
("eless-all"
:components ("eless-all-docs" "eless-tangle"))))