Giter VIP home page Giter VIP logo

makesite's People

Contributors

gabfl avatar kgaughan avatar mholiv avatar nortyspock avatar p10q avatar plaiddroid avatar sunainapai avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

makesite's Issues

CommonMark Import error

On windows, i checked where you import CommonMark library as
import CommonMark

I got an error even though i had the lib installed. I changed it to all lowercase
import commonmark
and it fixed the issue.

Just though you should know.

How to add an image folder?

@sunainapai I know you are not interested in adding any features, but what is the quickest way that I can create an image folder for me to link to images in my markdown files?

Configuration file and other extensions

Hello - great work, thanks for sharing.

I was wondering whether you are interested in expanding your site generator, or leaving is as it?

I am asking as I will fork it and make several changes:

  • make the content delimiters {{ and }} configurable as they clash with Vue.js
  • add the capacity to generate some indexes from the HTML / MD code to be fed to a search component.

I would be happy to make PRs for these but I am not sure about your plans for long-term maintenance.

{{ base_path }} placeholder gets not replaced in content HTML files

Thank you very much for makesite. Of all the static site generators I've tried, this one suites my requirements best.

I set a value for the base_path default param in makefile.py. For the page.html template in folder layout the param gets replaced as expected. However in any HTML file in folder content the placeholder remains untouched.

As a workaround I manually replaced the placeholder with the actual value.

Are placeholders not supported in content HTML pages?

render math?

Makesite is a beauty of simplicity and I am thinking of using it in a blog project.

Can you advise if there is a way of rendering mathematical expressions?

socket.error: [Errno 98] Address already in use

i run your code on debian with python 2.7. And it throw an error : socket.error: [Errno 98] Address already in use
i change the ip:port to my server ip+new port. but the error still exist.
i search the question online . someonte say to add one line code below , but i can't find where to add ,
self.recSocket = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
self.recSocket.settimeout(CHECK_TIMEOUT)
self.recSocket.setsockopt(socket.SOL_SOCKET,socket.SO_REUSEADDR,1)
self.recSocket.bind(('', UDP_PORT))
the url: https://blog.csdn.net/chenyulancn/article/details/8181238
hope you can help me. Thanks.

XMPP: Post to PubSub

Greetings!

In XMPP, using PubSub(1) (XEP-0060), it is possible to store posts as Atom Syndication(2) entries into XMPP(3).

There are several XMPP extensions that apply it, namely XEP-0227 (4) and XEP-0472 (5) which make node xmpp:microblog:0 as a common choice to manage news for client accounts (e.g. [email protected]), yet a component account (e.g. pubsub.make.site) may use all of its nodes for this purpose.

pubsub.make.site/
|
|-- updates/
    |-- Sombre
     `-- Varied
|-- releases/
 `-- events/
pubsub service/
|
|-- node/
    |-- item
     `-- item
|-- node/
 `-- node/

I have made a script that realizes viewing PubSub node items as Atom XML feeds over HTTP.

  1. XEP-0060: Publish-Subscribe
  2. RFC 4287: The Atom Syndication Format
  3. Atom Over XMPP
  4. XEP-0277: Microblogging over XMPP
  5. XEP-0472: Pubsub Social Feed
  6. PubSub Over HTTP

Proposal: use Classless as the default layout

Classless is a default HTML template that supports basically article pages and list pages, plus a global header, a navigation menu, a global footer, everything you need to build a simple blog or website.

The idea is that if you write HTML conforming to the rules specified by it you'll get access to multiple themes written with the same structure in mind, so you don't have to reinvent theming engine and themes every time you change or write your own CMS or static site generator, you just bring you CSS file over and it's done. The same minimalism ideal that powers makesite.py.

My idea is that with a few tweaks we can make makesite.py's default layouts conform to the Classless structure, making it easy for newcomers to start their sites by already using one of the prebuilt themes. Of course, none of the flexibility is lost and people can still tweak everything and either create a custom Classless theme or totally move away from the Classless template if they want.

What do you think?

When {{base_path}} exists, images in markdown files lose their reference

For html files, I can see that Makefile will take params.json and replace {{ base_path }} with the parameter, like "{{ base_path }}/css/style.css".

However, the same doesn't seem to be possible with the markdown files.

This means that I can see my images fine locally, but there doesn't seem to be a way to have markdown images be converted into the correct path in the html since makefile.py does not check and add the params.json base_path.

Is there a workaround, or am I doing something wrong perhaps?

Turn into a docker command

I think this would be great to have as a docker "run" with two volumes - the input and the output. No dorking around with python packages and the like. Just a simple shell script that you call with the two dirs and it will build then run the code.

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.