<commit_before>## Veejayhq.net static site generator

This is the generator for http://veejayhq.net

## Usage

1. Clone the repository

```
    git clone <EMAIL>:veejayhq/veejayhq.git
```

2. Install a node.js version

The node.js version that comes with your distro is propably too old. 
[nvm](https://github.com/creationix/nvm) is the way to go:

```
    curl https://raw.githubusercontent.com/creationix/nvm/v0.24.0/install.sh | bash
```

3. Install dependencies

```
    cd veejayhq
    npm install
```

4. Generate the site

After editing files in `content` render the site as following:

```
    ./cmd.js build content public
```

The new HTML is now in public

5. Serve content

There's a simple webserver included:

```
    ./cmd.js serve public
```

## Publishing the site

This repository contains the _generator_, to actually publish the site, another repository
is used to render the content into. Publishing the new site is just pushing it to GH.

```
    TARGET_DIR=veejayhq.github.io
    git clone <EMAIL>:veejayhq/veejayhq.github.io.git ${TARGET_DIR}
    ./cmd.js build content ${TARGET_DIR}
    cd ${TARGET_DIR}
    git add -u
    git commit
    git push
```    


I've summarized these commands in the [build-site.sh](./build-site.sh) script.

## Conversion from wordpress

The site has been converted from wordpress. All content should be there.
However, if something's missing, there is an xml export with the original content that
can be imported again.

## Contributing

Contributions are very welcome, especially the following:

* improve documentation ( edit the markdown files for this! )
* remove deprecated documentation ( remove files )
* improve layout and templates ( see `templates`) for this.<commit_msg>simplfy stuff. put in package.json<commit_after>## Veejayhq.net static site generator

This is the generator for http://veejayhq.net

## Installation

This site is generated using `node.js`, but no actual knowledge is required:
Just edit/add files in the [content](./content) directory.

These files are written in [markdown](https://help.github.com/articles/markdown-basics/) 
with a little bit of [frontmatter](https://www.npmjs.com/package/front-matter) at the top to specify things like a title.


1. Clone the repository

```
    git clone <EMAIL>@github.com:veejayhq/veejayhq.git
```

2. Install a node.js version and dependencies

The node.js version that comes with your distro is propably too old. 
[nvm](https://github.com/creationix/nvm) is the way to go:

```
    curl https://raw.githubusercontent.com/creationix/nvm/v0.24.0/install.sh | bash
    cd veejayhq
    npm install
```

4. Generate the site

After editing files in `content` render the site as following:

```
    cd veejayhq
    npm run build
```

The new HTML is now in public. To publish to [veejayhq.net](http://veejayhq.net) run:

```
    cd veejayhq
    npm run publish
```

You may want to preview your work locally  by starting the small built-in webserver:

```
    cd veejayhq
    npm start
```

Don't forget to commit your changes using git!

## Publishing the site

This repository contains the _generator_, to actually publish the site, another repository
is used to render the content into. Publishing the new site is just pushing it to GH.

## Contributing

Contributions are very welcome, especially the following:

* improve documentation ( edit the markdown files for this! )
* remove deprecated documentation ( remove files )
* improve layout and templates ( see `templates`) for this.
{'fraction_non_alphanumeric': 0.0919442072302875, 'fraction_numerical': 0.004554511813265016, 'mean_word_length': 3.7422402159244266, 'pattern_counts': {'":': 0, '<': 6, '<?xml version=': 0, '>': 6, 'https://': 6, 'lorem ipsum': 0, 'www.': 1, 'xml': 1}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4057288', 'n_tokens_mistral': 1102, 'n_tokens_neox': 1032, 'n_words': 425}