Add more info
This commit is contained in:
parent
bc02eaac77
commit
206801b564
@ -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.
|
||||||
|
@ -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)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user