Coder Social home page Coder Social logo

noisnemid / noisnemid.github.io Goto Github PK

View Code? Open in Web Editor NEW
3.0 1.0 0.0 904 KB

Systematic research on (PKM)Personal Knowledge Management and (PKS)Personal Knowledge System.

Home Page: https://noisnemid.github.io

License: GNU General Public License v3.0

HTML 61.94% CSS 16.26% JavaScript 19.51% Shell 0.05% Makefile 0.37% Batchfile 0.64% Python 1.23%
knowledge-management personal-knowledge-management personal-knowledge-system

noisnemid.github.io's Introduction

README to the REPOSITORY

.. index:: GITHUB-PAGES REPO README

Date:2020-05-26 17:53:41

This is the source repo for NPKMP NOISNEMID PERSONAL KNOWLEDGE MANAGEMENT PLAN https://noisnemid.github.io .

According to a blog with title 'Yes You Can Use GitHub Pages with Python Sphinx' (https://www.docslikecode.com/articles/github-pages-python-sphinx/), the key-modifications to the official github-pages scheme are:

If you are using *nix operations like Linux or similar ones like MacOS, etc., do the following:

  1. edit 'Makefile'

    The key is to add an empty file '.nojekyll' in the html docs folder.

    github:
        @make clean
        @make html
        @rsync -aAHXv --delete ./build/html/ ./docs
        @touch ./docs/.nojekyll
    

    But if you are using a windows OS, editing the Makefile will get errors like: Builder name github not registered or available through entry point . So you need to edit make.bat instead:

    add the following codes under the line if "%1" == "" goto help

    REM for windows...
    REM ref https://github.com/sphinx-doc/sphinx/issues/3382#issuecomment-485655004
    
    if "%1" == "github" (
        %SPHINXBUILD% -M clean %SOURCEDIR% %BUILDDIR% %SPHINXOPTS%
        %SPHINXBUILD% -M html %SOURCEDIR% %BUILDDIR% %SPHINXOPTS%
        rsync -a --delete ./build/html/ ./docs
        cd docs & cd .>.nojekyll
        echo.Generated files copied to ./docs
        goto end
    )
    

    Note that rsync should be installed and added to your environment variables.

    Note that trick cd .>.nojekyll to emulate linux's command touch

    That codes has been modified to fit this repo. If you want to make your own changes you could refer to the links about that mentioned issue after REM line.

  2. build with the command make github

  3. in github repo settings, change the github pages source to 'docs/' folder of the branch.

Why the publishing html files are NOT in /docs ?

From:https://stackoverflow.com/a/62018811/13396432

It's my answer:

If you use a repository named '.github.io' or '.github.com', you could only use their pre-provided file structure, which means you can't select the source for the github-pages service.

If you rename the repo to other name which not match the auto-serve pattern(.github.io| ...com), you will be able to choose the source.

In case [2], you need to add an empty file named '.nojekyll' under /docs folder, and put all files including CNAME and index.html and asset files(images, css,etc.,) here.

noisnemid.github.io's People

Contributors

noisnemid avatar

Stargazers

 avatar  avatar

Watchers

 avatar

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.