Giter Club home page Giter Club logo

dblog's Introduction

README

This is a project template for getting started with your developer blog. See Start your own developer blog for an introducton.

Installation:

  • Make a clone of this project into some directory of your choice. For example:

    $ cd ~/projects
    $ git clone https://github.com/lsaffre/dblog.git blog
    

    This will create a directory ~/projects/blog with all necessary files. On the Linux command line ~ is shorthand for your home directory.

    Note that we explicitly specified your local project name "blog" as an argument to the git command. This name is not visible to the outside. Without that argument, git would use dblog as local project name, which would be suboptimal since "dblog" is just the name of this template project. See Setting up your work environment for more details.

    Activate your virtualenv and install the atelier Python package:

    $ pip install atelier
    
  • Edit the following files and replace at least "John Doe" by your name:

    • ~/projects/blog/docs/conf.py
    • ~/projects/blog/docs/index.rst
  • Create a file named .invoke.py in your home directory with the following content (replacing john by your local username, johndoe by the name of your SSH account):

    blog_root = '/home/john/projects/blog/docs'
    blogref_url = 'http://johndoe.lino-framework.org'
    docs_rsync_dest = '[email protected]:~/public_html/%s'
    editor_command = 'vim'
    # editor_command = 'emacsclient -n'
    # editor_command = '/path/to/pycharm/bin/pycharm.sh'
    

To start blogging:

$ cd ~/projects/blog
$ inv blog

To build your docs locally:

$ inv bd

To see your built doctree:

$ firefox docs/.build/index.html

To publish your docs:

$ inv pd

Before this last step can work, you need to configure where your blog is to be published.

You need an SSH account on some public server. For example [email protected]. And that web server must be configured to serve /home/john/public_html/blog_docs to the outside. For example if you want your blog to be visible under http://www.doe.org you point your browser's "/" location to public_html/blog_docs.

As a Lino contributor you'll get a free account on lino-framework.org, just ask for it.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.