Skip to content

Commit

Permalink
more in elisp
Browse files Browse the repository at this point in the history
  • Loading branch information
xavierr committed Jan 19, 2024
1 parent a815952 commit 40aa0c8
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions sphinx/util.el
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

(pcase (user-login-name)
("xavier" (progn
(pyvenv-activate "~/Python/battinfo-doc-3.7-env/")
(pyvenv-activate "~/Python/battinfo-doc-3.12-env/")
(setq docdir "/home/xavier/Python/domain-electrochemistry/sphinx/")
(setq testdir "/home/xavier/Python/BattInfo-doc-test/")
))
Expand All @@ -18,14 +18,17 @@
(browse-url (concat docdir "_build/html/index.html"))
)


(defun battinfodoc-build ()
"Build BattMo documentation"
(interactive)
(let* ((default-directory docdir)
(let* (
(outputbuffer (get-buffer-create "*buildoutput*"))
)
(delete-directory (concat docdir "_build") t)
(pop-to-buffer outputbuffer)
(pyvenv-activate "~/Python/battinfo-doc-3.12-env/")
(cd docdir)
(erase-buffer)
(start-process "battinfo-build" outputbuffer "make" "html")
)
Expand Down

0 comments on commit 40aa0c8

Please sign in to comment.