HTML web export
Hello to all you Editorial users !
I'm quite new to Editorial, and quite like it so far. There is only one small thing. For a while now, I've been trying to find a piece of software that can:
- Create a set of pages to which I can link and then export to HTML to design a very simple website
I was wondering if anyone new of a way that I could create a very simple set of pages in Editorial that I could then export to HTML, to create a very simple text-based website?
Check out http://omz-software.com/editorial/docs/ios/markdown.html and http://omz-software.com/editorial/docs/ios/markdown2.html These modules will convert
Have a look at this workflow. It converts to HTML, then puts it in Dropbox to host it as a webpage:
I'm new to editorial too... And have been playing around with generating some HTML then uploading to my webspace using FTPlib. It's working well and I will share the WorkFlow when I have tidied it up a bit...
One question I have is: When I create a text/ HTML file with
with open('xdiary.htm','w') as f:
I can access the file to upload it using FTP, but where is the file? How do I get a directory listing of the various files that I have created during testing! presumably I want to delete these temporary files.
osmodule to get all the files in the current directory
path_hack.pylets you see the results of several os.path calls.
import os print('=' * 40) print(os.curdir) print(os.getcwd()) print(os.path.abspath(os.getcwd())) print(os.path.realpath(os.getcwd())) print(os.path.relpath(os.getcwd(), os.path.expanduser('~'))) print('=' * 20) home_dir = os.path.expanduser('~') print('home_dir', home_dir) assert os.path.expanduser(os.environ['HOME']) == home_dir, 'Always True?' assert os.path.expanduser(os.environ.get('HOME')) == home_dir, 'Always True?' docs_dir = os.path.expanduser('~/Documents') print('docs_dir', docs_dir) script_dir, script_name = os.path.split(__file__) print('script_dir', script_dir, 'script_name', script_name) app_path = os.path.abspath(os.path.join(os.__file__, '../..')) print('app_path', app_path) print('=' * 20) print('\n'.join(file_or_folder_name for file_or_folder_name in os.listdir(os.curdir))) print('=' * 20) print('\n'.join(file_or_folder_name for file_or_folder_name in os.listdir(home_dir))) print('=' * 20) print('\n'.join(folder_name for folder_name in os.listdir(home_dir) if os.path.isdir(os.path.join(home_dir, folder_name)))) print('=' * 20) print('\n'.join(file_name for file_name in os.listdir(home_dir) if os.path.isfile(os.path.join(home_dir, file_name)))) # also see: files_and_folders.py and cd_ls_pwd.py in https://github.com/cclauss/Ten-lines-or-less