Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug32627: build HTML GitLab Pages site with GitLab CI #96

Merged
merged 3 commits into from Jan 13, 2020

Conversation

Labels
None yet
Projects
None yet
3 participants
@eighthave
Copy link
Contributor

@eighthave eighthave commented Nov 26, 2019

This does a rough conversion to Markdown using regexps, then uses pandoc to convert the Markdown to HTML. An index.html is also generated to make it easy to find the various documents. This will create a site in any GitLab fork that has CI/CD and Pages setup, which is the default on gitlab.com.

Here's an example:

@teor2345
Copy link
Contributor

@teor2345 teor2345 commented Nov 27, 2019

Is there a trac ticket for this pull request?

@eighthave eighthave changed the title build HTML GitLab Pages site with GitLab CI Bug32627: build HTML GitLab Pages site with GitLab CI Nov 27, 2019
@eighthave
Copy link
Contributor Author

@eighthave eighthave commented Nov 27, 2019

eighthave added 3 commits Dec 10, 2019
This only adds newline characters to make the existing text blocks act like
"blockquote" or "code block" syntax in Markdown, asciidoc, and others.
This was accomplished by manually reviewing the output of this script:

```bash
for f in *.txt; do
  cat $f | python -c "import sys,re;print(re.sub(r'(\n {0,3}[^ \n][^\n]*\n)( {4,}[^\n]*)', r'\1\n\2', sys.stdin.read()))" > ${f}.tmp
  mv ${f}.tmp $f
done
```
This does a rough conversion to Markdown using regexps, then uses pandoc to
convert the Markdown to HTML.  An index.html is also generated to make it
easy to find the various documents.  This will create a site in any GitLab
fork that has CI/CD and Pages setup, which is the default on gitlab.com.
@torproject-pusher torproject-pusher merged commit 2df60b7 into torproject:master Jan 13, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment