Add more info

This commit is contained in:
Andros Fenollosa 2023-06-13 10:24:53 +02:00
parent bc02eaac77
commit 206801b564
2 changed files with 8 additions and 1 deletions

View File

@ -23,3 +23,9 @@ Example.
(setq org-share-to-web-domain "https://mydomain.com/") (setq org-share-to-web-domain "https://mydomain.com/")
(setq org-share-to-web-directory "/ssh:debian@mydomain.com:~/www/") (setq org-share-to-web-directory "/ssh:debian@mydomain.com:~/www/")
``` ```
## Run
Open an Org file and run `org-share-to-web-buffer`.
It will copy the URL to your clipboard to open the document share.

View File

@ -23,7 +23,8 @@
(export-html (org-export-string-as (buffer-string) 'html))) (export-html (org-export-string-as (buffer-string) 'html)))
(write-region export-html nil (concat org-share-to-web-directory filename-html)) (write-region export-html nil (concat org-share-to-web-directory filename-html))
(tramp-cleanup-all-connections) (tramp-cleanup-all-connections)
(kill-new (concat org-share-to-web-domain filename-html)))) (kill-new (concat org-share-to-web-domain filename-html)))
(message "Org shared online. URL copied to clipboard!"))
(provide 'org-share-to-web) (provide 'org-share-to-web)