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

Repotag jruby compatibility #1347

Open
wants to merge 282 commits into
base: repotag-jruby-compatibility
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
282 commits
Select commit Hold shift + click to select a range
f1e6839
Merge remote-tracking branch 'origin/master' into trim-contributing
bkeepers Mar 4, 2015
78aa377
Fix link to linguist
bkeepers Mar 4, 2015
2ab3606
Call out CSS issues
bkeepers Mar 4, 2015
6404e98
tweaks
bkeepers Mar 4, 2015
ad43ec6
Merge pull request #431 from github/trim-contributing
bkeepers Mar 4, 2015
60119d9
Merge remote-tracking branch 'origin/master' into implementation-name
bkeepers Mar 8, 2015
46010af
Merge pull request #377 from github/implementation-name
bkeepers Mar 8, 2015
bc732cc
Upgrade wikicloth to JRuby-compatible version 0.8.3.
bartkamphorst Mar 30, 2015
ec367e5
Update CONTRIBUTING.md
bkeepers Apr 30, 2015
43fe31a
Merge pull request #492 from github/primer
bkeepers May 1, 2015
d2860bf
Add Ruby syntax highlighting
himynameismartin May 2, 2015
4691aec
Merge pull request #493 from himynameismartin/patch-1
bkeepers May 5, 2015
45cad6b
Adding a convenience "render by symbol"
May 5, 2015
d286e87
Bug fixes
May 5, 2015
9205275
Bug fixes
May 5, 2015
3cc56d2
Updating README to reflect recet changes
May 6, 2015
14a8a61
Unlock email addresses
gjtorikian Jun 5, 2015
07cf187
Support `:kbd:` shortcut
gjtorikian Jun 5, 2015
802316b
Merge pull request #502 from github/fix-dat-rst
gjtorikian Jun 10, 2015
16b6ddc
upgrade to Asciidoctor 1.5.2
mojavelinux Dec 8, 2014
5635af3
Merge pull request #427 from mojavelinux/asciidoctor-1.5.2-upgrade
gjtorikian Jun 25, 2015
4daed52
Display unknown restructuredText directives
pmaupin Jun 26, 2015
f68fcab
Add github display control comment
pmaupin Jun 26, 2015
0c6261a
Add HTML output of directives test
pmaupin Jun 26, 2015
cf688b2
Update expected test result
pmaupin Jun 26, 2015
ff25f45
Add HTML classes for comments and unknown directives
pmaupin Jun 26, 2015
01fb321
Update expected results
pmaupin Jun 26, 2015
44cfb29
Add code of conduct to contributing guidelines
bkeepers Jul 8, 2015
f34f538
pep8 compliance
kakwa Jul 18, 2015
68557d2
enable raw html
kakwa Jul 18, 2015
04c5f11
uphold => honor
bkeepers Jul 20, 2015
1b48040
Merge pull request #523 from github/code-of-conduct
bkeepers Jul 20, 2015
5716bc1
:gem: bump to 1.4.0
gjtorikian Jul 31, 2015
bdb490b
Merge pull request #454 from github/mediawiki-codepre
gjtorikian Aug 5, 2015
c5e6585
Added doctest blocks to reStructuredText
moreati Sep 2, 2015
c4c6603
Merge pull request #546 from moreati/rst-doctest
gjtorikian Sep 8, 2015
b90deae
Merge remote-tracking branch 'upstream/master' into raw_html_rst
kakwa Sep 29, 2015
58389ca
Merge branch 'kakwa-raw_html_rst'
gjtorikian Oct 1, 2015
5393ae9
Add test for raw RST
gjtorikian Oct 1, 2015
eb4ea4f
Drop 1.9.3
gjtorikian Oct 1, 2015
6a58958
Ensure `sudo: false`
gjtorikian Oct 1, 2015
8b22d82
Not so many Git depths
gjtorikian Oct 1, 2015
5759fa0
Properly install `python-docutils`
gjtorikian Oct 1, 2015
5f7d58f
allow multiple files for command line tool
oklas Apr 1, 2016
47b1ddb
Add failing test case
gjtorikian Jul 22, 2016
418da90
Gotta cache 'em all
gjtorikian Jul 22, 2016
2cb105c
no sudo
gjtorikian Jul 22, 2016
d54fdcd
Fine come back sudo
gjtorikian Jul 22, 2016
863ca20
do we need this
gjtorikian Jul 22, 2016
a56c587
Lock it
gjtorikian Jul 22, 2016
35b68c7
Yep need it.
gjtorikian Jul 22, 2016
6413e7b
JRuby needs this for C
gjtorikian Jul 22, 2016
cf74e84
It never ends
gjtorikian Jul 22, 2016
53211f7
Makes rest2html work in both python2 and python3
brodock Aug 24, 2016
62ff599
Handle sys.stdin and sys.stdout encoding issues in python 3.x
brodock Sep 6, 2016
88ab491
Use a more contemporary install command for .rst format.
ericsnowcurrently Oct 5, 2016
a62c5cd
rdoc URL updated
strixaluco Oct 24, 2016
d9748ca
Remove the sectsubtitle_xform setting
hcpl Nov 1, 2016
59aa433
Added support for highlighting doctest blocks in reStructuredText files.
Nov 29, 2016
e97e476
Make rest2html work with docutils 0.13
mitya57 Dec 22, 2016
6904a21
Add CommonMarker gem
Jan 30, 2017
0c2da97
:gem: bump to 1.4.1
Jan 30, 2017
e494209
Ruby 1.9 adjustments
Mar 8, 2017
5ded14c
:gem: bump to 1.4.2
Mar 8, 2017
26dee71
(chore) (refactor) pipe result of each gsub instead of modifying orig…
jesperronn Mar 13, 2017
549f59c
Bump for latest CommonMarker
Mar 14, 2017
23f435f
:gem: bump to 1.4.3
Mar 14, 2017
7370b3f
Don't append to ESCAPED_TAGS forever.
Mar 15, 2017
0183799
:gem: bump to 1.4.4
Mar 15, 2017
0df6026
Merge remote-tracking branch 'origin/master' into theory/pod-xhtml
Mar 15, 2017
0046941
Use metacpan.org for searches
Mar 15, 2017
c69660e
Attempt install on Travis
Mar 15, 2017
8c693c6
Drop "-w"
Mar 16, 2017
774bb32
Only pop context when installed docutils wants
Mar 16, 2017
3ba32f5
Merge pull request #1012 from github/theory/pod-xhtml
Mar 16, 2017
5aeffac
Merge pull request #976 from mitya57/master
Mar 16, 2017
79c8815
Merge pull request #940 from ericsnowcurrently/patch-1
Mar 16, 2017
bbdc994
Merge pull request #966 from wheerd/doctest-block-highlighting
Mar 16, 2017
4399c58
Merge pull request #948 from strixaluco/patch-1
Mar 16, 2017
9d0e892
Merge pull request #954 from hcpl/rst-section-subsection
Mar 16, 2017
19b7e43
Merge pull request #516 from pmaupin/display_unknown_directives
Mar 16, 2017
5f74561
Merge remote-tracking branch 'origin/master' into SkyCrawl-symbol-con…
Mar 16, 2017
59d7609
Merge remote-tracking branch 'origin/master' into SkyCrawl-symbol-con…
Mar 16, 2017
e8fd011
Merge branch 'SkyCrawl-symbol-convenience-render-method'
Mar 16, 2017
9d4a0ae
Merge remote-tracking branch 'origin/master' into repotag-upgrade_wik…
Mar 16, 2017
3dac4e4
Merge branch 'repotag-upgrade_wikicloth'
Mar 16, 2017
3e26470
Merge pull request #919 from brodock/python3-fix
Mar 16, 2017
179819e
Use Linguist to detect the language
pchaigno Aug 19, 2015
7557871
return error code to shell
oklas Mar 16, 2017
60293d9
bin/github-markup: Follow symlinks to find installation folder.
cakoose Mar 17, 2017
93853fc
Bump to 1.4.5
vmg Mar 17, 2017
f1461a2
Merge pull request #441 from cakoose/master
Mar 17, 2017
cc3ff6d
Merge pull request #884 from oklas/cli-multi-files
Mar 19, 2017
b298378
Merge pull request #537 from pchaigno/detect-language-using-linguist
Mar 19, 2017
28710c2
Allow empty blobs in Linguist
Mar 20, 2017
7c2096e
:gem: bump to 1.4.6
Mar 20, 2017
5685837
Fix CONTRIBUTING.md link
Mar 20, 2017
4002376
Fix up Gemfile/gemspec
Mar 20, 2017
c3aa758
Switch Markdown dependency to commonmarker
Mar 20, 2017
c7b5e14
Update README.md
Mar 20, 2017
b373ed5
:gem: bump to 1.4.7
Mar 21, 2017
cc638bd
Link directly to pod pages on metacpan
Grinnz Mar 22, 2017
fd78413
Merge pull request #1027 from Grinnz/metacpan-pod-links
Mar 22, 2017
f36ba9f
Try some fixes for Travis
Mar 22, 2017
585dba5
Be really specific about Nokogiri
Mar 22, 2017
b0a461e
RedCloth back into GemFile for textile
Mar 22, 2017
e6f1ce6
Fix litcoffee test fixture
Mar 22, 2017
015c9fb
Merge branch 'kivikakk/travis-fixes'
Mar 22, 2017
4ed5a13
Use :GITHUB_PRE_LANG
Mar 22, 2017
64b676b
Fix dependencies
Mar 22, 2017
db774f6
:gem: bump for 1.4.8
Mar 22, 2017
ec0eb75
Update Textile link, fixes #590
Mar 23, 2017
bbee330
Revert #537 temporarily for final 1.4 release
Mar 27, 2017
3087f06
:gem: bump for 1.4.9
Mar 27, 2017
a970742
Revert "Revert #537 temporarily for final 1.4 release"
Mar 27, 2017
665ab4d
Linguist optional; fallback to filenames
Mar 27, 2017
e96dfcb
Merge branch 'kivikakk/reintroduce-537'
Mar 27, 2017
3b342a4
:gem: bump to 1.5.0
Mar 27, 2017
0c84594
Update change log for recent versions
PikachuEXE Mar 27, 2017
4b52d6d
Remove superfluous dependency on rinku
Mar 28, 2017
4553110
Merge pull request #1033 from PikachuEXE/patch-1
Mar 30, 2017
e1f9662
Merge pull request #1035 from repotag/remove_rinku
Mar 30, 2017
05cca0f
resolves #519 enable source-to-source navigation for inter-document x…
mojavelinux Apr 1, 2017
4998caa
Merge pull request #1039 from mojavelinux/issue-519
Apr 3, 2017
9fe0536
Pass filename to all renderers
Apr 3, 2017
36b3680
set outfilesuffix to match extension of input filename
mojavelinux Apr 3, 2017
7e85b37
Merge pull request #1041 from mojavelinux/match-outfilesuffix-to-inpu…
Apr 3, 2017
df24c57
:gem: bump to 1.6.0
Apr 3, 2017
516b151
rest2html: Add support for highlight directive
bgamari Sep 4, 2016
89441f4
Merge pull request #925 from bgamari/rest-highlight
May 28, 2017
a49b58c
Update all gsub since `gsub!` can return nil and fail
jesperronn May 29, 2017
46325ba
Merge pull request #1009 from jesperronn/patch-1
May 29, 2017
d8fee0d
doc fix example with newline interpolation
jpuck Jun 11, 2017
69ee5d6
Merge pull request #1071 from jpuck/patch-1
Jun 12, 2017
2a9e03b
Tweak param signature for kbd role
tony Jul 13, 2017
70ca704
Add Ruby 2.1/2.2/2.3/2.4 and JRuby 9000 for CI target
tnir Jul 14, 2017
b0707fb
Just use docutils instead of sphinx
tnir Jul 15, 2017
95939d4
Merge pull request #1087 from tnir/use-pip-install-docutils
Jul 17, 2017
987d051
Merge pull request #1086 from tnir/ruby-2-4-for-ci
Jul 17, 2017
377cbc4
Upgrade to Asciidoctor 1.5.6.1
goodness-from-me Jul 18, 2017
805e7b1
Merge pull request #1088 from miltador-forks/asciidoctor-1.5.6
Jul 25, 2017
a7b988a
:gem: bump to 1.6.1
kivikakk Jul 25, 2017
793148b
Merge pull request #1082 from tony/patch-1
Jul 31, 2017
8040a8e
Update rdoc link in README
rendaw Aug 29, 2017
62dbfac
Merge pull request #1100 from Rendaw/master
Aug 30, 2017
6f85555
Update README.md
safinaskar Sep 29, 2017
670c120
Fix grammar
kivikakk Oct 2, 2017
01c2444
Merge pull request #1112 from safinaskar/patch-1
Oct 2, 2017
05ef578
Update link and information about primer-markdown module #1119
pjbollinger Oct 22, 2017
21fd0ab
Merge pull request #1120 from pjbollinger/update-primer-markdown-link
Oct 31, 2017
9f6f20e
Adding gem project links where the markdown link does not refer direc…
rmrgh Nov 3, 2017
0a7784e
removing redundant information
rmrgh Nov 3, 2017
6c250ae
Merge pull request #1125 from rmrgh/master
Nov 6, 2017
1ea698f
spelling: ellipses
jsoref Nov 10, 2017
2e67def
spelling: precedence
jsoref Nov 10, 2017
0e61227
Merge pull request #1128 from jsoref/spelling
Nov 22, 2017
367e439
github-markup: display basename instead of entire $0
mistydemeo Nov 27, 2017
aea670b
Use dist: precise
kivikakk Nov 27, 2017
00c6b8c
Merge pull request #1131 from github/display_base_executable_name
Nov 27, 2017
5d2190d
Use trusty instead
kivikakk Nov 27, 2017
b5becff
Merge pull request #1132 from github/dist-precise
Nov 27, 2017
fb467aa
:gem: bump to 1.6.2
kivikakk Nov 27, 2017
47a8cdc
reduce friction to create environment
kiwiroy Nov 28, 2017
968ba4e
Merge pull request #1134 from kiwiroy/bootstrap-to-vendor-dir
Nov 30, 2017
3d861e8
Pass through symlink info
kivikakk Dec 12, 2017
f6484c4
pull in linguist 6
kivikakk Jan 30, 2018
31ae286
wikicloth doesn't pin dependencies so we have to
kivikakk Jan 30, 2018
6704f82
try here
kivikakk Jan 30, 2018
50cb58f
Merge pull request #1139 from github/kivikakk/pass-symlink
Jan 30, 2018
898963c
bump nokogiri to ~> 1.8.1
kivikakk Jan 30, 2018
2f2a13b
drop support for ruby 2.0
kivikakk Jan 30, 2018
a73ff6a
Merge pull request #1156 from github/nokogiri-bump
Jan 30, 2018
b8b14ec
:gem: bump to 1.7.0
kivikakk Jan 30, 2018
165860d
Remove filesystem access
kivikakk Jan 30, 2018
6d3631e
Merge pull request #1157 from github/kivikakk/remove-file-read
Jan 30, 2018
6305aee
:gem: bump to 2.0.0
kivikakk Jan 30, 2018
5163652
CONTRIBUTING: note license.
MikeMcQuaid Feb 16, 2018
08ea2aa
Merge pull request #1165 from github/contributing-license
MikeMcQuaid Feb 16, 2018
31ed043
Adds perl6 test from perl6/doc home
JJ Mar 12, 2018
3286a7e
Adds files (and modifies) for perl6 refs #907
JJ Mar 12, 2018
8c5fc3d
Cleanup
JJ Mar 12, 2018
c08633c
Cleanup
JJ Mar 12, 2018
a6dc077
Reduced errors to 0
JJ Mar 12, 2018
f3cd92a
Test-driving travis now
JJ Mar 12, 2018
ce7705c
Use direct link
JJ Mar 12, 2018
fed288a
Adjusts path
JJ Mar 12, 2018
d0f9a82
Adds POD6 to README.
JJ Mar 12, 2018
005be7e
POD: Create anchor for every =item directive
pali Jun 21, 2018
0f9a188
Merge pull request #1208 from pali/master
Jun 27, 2018
4359089
:gem: bump to 2.0.1
kivikakk Jun 29, 2018
d8a547c
Add Code of Conduct
lee-dohm Aug 27, 2018
cf88ed0
Merge pull request #1226 from github/code-of-conduct
lee-dohm Aug 28, 2018
2b0bdcf
Update CONTRIBUTING guide to point to Code of Conduct
lee-dohm Aug 28, 2018
56a5850
Update README.md
kivikakk Oct 7, 2018
b88d561
don't render rmd as markdown
kivikakk Oct 14, 2018
048ca72
Merge pull request #1235 from github/revert-343-render-rmd-as-markdown
Oct 14, 2018
e8a9b37
:gem: bump to 2.0.2
kivikakk Oct 14, 2018
8f5eea1
markup options, cleanup
kivikakk Oct 18, 2018
de903b8
Merge pull request #1236 from github/cleanup-markup-options
Oct 18, 2018
3405de8
more README clarity
kivikakk Oct 18, 2018
d8048ae
:gem: bump to 3.0.0
kivikakk Oct 18, 2018
c45c7e6
remove RMarkdown from the linguist match list
kivikakk Oct 18, 2018
cf042f2
Merge branch 'rmd-part-two'
kivikakk Oct 18, 2018
9173626
:gem: bump to 3.0.1
kivikakk Oct 18, 2018
e70b3ee
Clarifying dependencies.
Nov 1, 2018
11a355b
we no longer use html-pipeline for this
kivikakk Nov 6, 2018
4406f72
Merge remote-tracking branch 'origin/master' into JJ-master
kivikakk Dec 10, 2018
8111487
cleanup/fixes
kivikakk Dec 10, 2018
f7a96cc
add testing Dockerfile
kivikakk Dec 10, 2018
9c5ea1a
use linguist 7
kivikakk Dec 10, 2018
83dfbbb
we're calling it Pod 6
kivikakk Dec 10, 2018
e953f70
trim heading/leading text
kivikakk Dec 10, 2018
7d24dd1
raise when lang missing
kivikakk Dec 10, 2018
ed385c6
update pod6 test
kivikakk Dec 10, 2018
bf3ad46
vend Pod::To::HTML
kivikakk Dec 11, 2018
27e4eea
add Pod-To-HTML to gem
kivikakk Dec 11, 2018
455a75d
minimum 7.1.3
kivikakk Dec 11, 2018
83d9824
Merge pull request #1173 from JJ/master
Dec 12, 2018
050b575
:gem: bump to 3.0.2
kivikakk Dec 12, 2018
51cb693
clean up regexes, remove another weird tag
kivikakk Dec 14, 2018
8f074d8
use latest Pod::To::HTML, no more eval
kivikakk Dec 17, 2018
9bb8b6c
tweak expected output
kivikakk Dec 17, 2018
c0452d6
don't install from zef
kivikakk Dec 17, 2018
d1461fe
remove jvm from travis build matrix
kivikakk Dec 17, 2018
a34a723
add p6 uri
kivikakk Dec 17, 2018
647fac6
add Template-Mustache submodule
kivikakk Dec 17, 2018
f7fc90c
include all of vendor/ in gem
kivikakk Dec 17, 2018
b8843a4
replace with passthrough
kivikakk Dec 17, 2018
8622794
Merge pull request #1248 from github/pod62html-tweaks
Dec 17, 2018
ea51182
:gem: bump to 3.0.3
kivikakk Dec 17, 2018
3e08f13
perf(markup): add options to render_s
jinhucheung Dec 21, 2018
32909da
perf(markup): add test
jinhucheung Dec 21, 2018
8f436ff
Merge pull request #1249 from jinhucheung/perf-render-params
Jan 6, 2019
24d25cb
remove pod6 from supported list
kivikakk Feb 24, 2019
34a7975
upgrade to Asciidoctor 2.0.x
mojavelinux Apr 2, 2019
d799e19
Merge pull request #1264 from mojavelinux/issue-1258-upgrade-to-ascii…
Apr 2, 2019
067c18d
:gem: bump to 3.0.4
kivikakk Apr 2, 2019
3e973e5
use modern sanitize in tests
kivikakk Apr 2, 2019
d3430c3
feat(commonmarker): add commonmarker_exts to options
jinhucheung May 6, 2019
c48e9ca
Merge pull request #1268 from jinhucheung/add-commonmarker-exts-to-op…
kivikakk May 6, 2019
7b17174
perf(commonmarker test): improve test case
jinhucheung May 7, 2019
c9358d9
Merge pull request #1269 from jinhucheung/perf-test-commonmarker-options
kivikakk May 7, 2019
cd4e3e0
Use squiggly HEREDOC syntax
maloucaze May 22, 2019
f82c995
Update github-markup.gemspec
May 23, 2019
f3531a5
Merge pull request #1274 from maloucaze/use-heredoc
kivikakk May 23, 2019
2710ab9
Check whether filename is set when rendering asciidoc
Sep 4, 2019
cd01f9e
Merge pull request #1290 from dometto/fix1289
Sep 5, 2019
5ca775b
Update Travis configuration.
freakboy3742 Jan 2, 2020
bd4fb12
Merge remote-tracking branch 'origin/mediawiki-madness' into pr/1312
Apr 28, 2020
dadeb25
Merge remote-tracking branch 'upstream/rst-why-you-hate-me' into pr/1312
Apr 28, 2020
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Dockerfile
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,6 @@
pkg/
.bundle
Gemfile.lock
vendor/
.project
.buildpath
*~
31 changes: 24 additions & 7 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,28 @@
dist: trusty
sudo: required
language: ruby
before_install: sudo pip install docutils
rvm:
- 1.9.3
- 2.0.0
- 2.1.1
- jruby-19mode
jdk:
- oraclejdk8
- 2.3.8
- 2.4.9
- 2.5.7
- 2.6.5
- 2.7.0
notifications:
email: false
git:
depth: 10
before_install:
- sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 379CE192D401AB61
- echo "deb https://dl.bintray.com/nxadm/rakudo-pkg-debs `lsb_release -cs` main" | sudo tee -a /etc/apt/sources.list.d/rakudo-pkg.list
- sudo apt-get update -qq
- sudo apt-get install perl rakudo-pkg
- export PATH=$PATH:/.perl6/bin:/opt/rakudo-pkg/bin
- curl -L http://cpanmin.us | perl - --sudo App::cpanminus
- sudo cpanm --installdeps --notest Pod::Simple
- sudo pip install docutils
cache:
- bundler
- pip
env:
global:
- "JRUBY_OPTS=-Xcext.enabled=true"
46 changes: 46 additions & 0 deletions CODE_OF_CONDUCT.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
# Code of Conduct

## Our Pledge

In the interest of fostering an open and welcoming environment, we as contributors and maintainers pledge to making participation in our project and our community a harassment-free experience for everyone, regardless of age, body size, disability, ethnicity, gender identity and expression, level of experience, nationality, personal appearance, race, religion, or sexual identity and orientation.

## Our Standards

Examples of behavior that contributes to creating a positive environment include:

* Using welcoming and inclusive language
* Being respectful of differing viewpoints and experiences
* Gracefully accepting constructive criticism
* Focusing on what is best for the community
* Showing empathy towards other community members

Examples of unacceptable behavior by participants include:

* The use of sexualized language or imagery and unwelcome sexual attention or advances
* Trolling, insulting/derogatory comments, and personal or political attacks
* Public or private harassment
* Publishing others' private information, such as a physical or electronic address, without explicit permission
* Other conduct which could reasonably be considered inappropriate in a professional setting

## Our Responsibilities

Project maintainers are responsible for clarifying the standards of acceptable behavior and are expected to take appropriate and fair corrective action in response to any instances of unacceptable behavior.

Project maintainers have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct, or to ban temporarily or permanently any contributor for other behaviors that they deem inappropriate, threatening, offensive, or harmful.

## Scope

This Code of Conduct applies both within project spaces and in public spaces when an individual is representing the project or its community. Examples of representing a project or community include using an official project e-mail address, posting via an official social media account, or acting as an appointed representative at an online or offline event. Representation of a project may be further defined and clarified by project maintainers.

## Enforcement

Instances of abusive, harassing, or otherwise unacceptable behavior may be reported by contacting the project team at [[email protected]](mailto:[email protected]). All complaints will be reviewed and investigated and will result in a response that is deemed necessary and appropriate to the circumstances. The project team is obligated to maintain confidentiality with regard to the reporter of an incident. Further details of specific enforcement policies may be posted separately.

Project maintainers who do not follow or enforce the Code of Conduct in good faith may face temporary or permanent repercussions as determined by other members of the project's leadership.

## Attribution

This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4, available at [https://contributor-covenant.org/version/1/4][version]

[homepage]: https://contributor-covenant.org
[version]: https://contributor-covenant.org/version/1/4/
63 changes: 19 additions & 44 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -1,65 +1,40 @@
# Contributing

Want to contribute? Great!
Contributions to this project are [released](https://help.github.com/articles/github-terms-of-service/#6-contributions-under-repository-license) to the public under the [project's open source license](LICENSE).

1. Fork it.
2. Create a branch (`git checkout -b my_markup`)
3. Commit your changes (`git commit -am "Added Snarkdown"`)
4. Push to the branch (`git push origin my_markup`)
5. Open a [Pull Request][1]
6. Enjoy a refreshing Diet Coke and wait


There are two ways to add markups.

### Commands

If your markup is in a language other than Ruby, drop a translator
script in `lib/github/commands` which accepts input on STDIN and
returns HTML on STDOUT. See [rest2html][r2h] for an example.
This project adheres to a [Code of Conduct][code-of-conduct]. By participating, you are expected to honor this code.

Once your script is in place, edit `lib/github/markups.rb` and tell
GitHub Markup about it. Again we look to [rest2html][r2hc] for
guidance:
[code-of-conduct]: CODE_OF_CONDUCT.md

command(:rest2html, /re?st(.txt)?/)
This library's only job is to decide which markup format to use and call out to an external library to convert the markup to HTML (see the [README](README.md) for more information on how markup is rendered on GitHub.com).

Here we're telling GitHub Markup of the existence of a `rest2html`
command which should be used for any file ending in `rest`,
`rst`, `rest.txt` or `rst.txt`. Any regular expression will do.
If you are having an issue with:

Finally add your [tests](#testing).
* **Syntax highlighting** - see [github/linguist](https://github.com/github/linguist/blob/master/CONTRIBUTING.md#fixing-syntax-highlighting)
* **Markdown on GitHub** - contact [email protected]
* **Styling issues on GitHub** - see [primer-markdown](https://github.com/primer/primer-css/tree/master/modules/primer-markdown) module in the [primer/primer-css](https://github.com/primer/primer-css) repository

### Classes
Anything else - [search open issues](https://github.com/github/markup/issues) or create an issue and and we'll help point you in the right direction.

If your markup can be translated using a Ruby library, that's
great. Check out `lib/github/markups.rb` for some
examples. Let's look at Markdown:
## Submitting a Pull Request

markup(:markdown, /md|mkdn?|markdown/) do |content|
Markdown.new(content).to_html
end

We give the `markup` method three bits of information: the name of the
file to `require`, a regular expression for extensions to match, and a
block to run with unformatted markup which should return HTML.
1. Fork it.
2. Create a branch (`git checkout -b my_markup`)
3. Commit your changes (`git commit -am "Added Snarkdown"`)
4. Push to the branch (`git push origin my_markup`)
5. Open a [Pull Request][1]
6. Enjoy a refreshing Diet Coke and wait

If you need to monkeypatch a RubyGem or something, check out the
included RDoc example.
**dependencies**

Finally add your [tests](#testing).
You can run `script/bootstrap.contrib` to fetch them all.

### Testing
## Testing

To run the tests:

$ rake

When adding support for a new markup library, create a `README.extension` in `test/markups` along with a `README.extension.html`. As you may imagine, the `README.extension` should be your known input and the
`README.extension.html` should be the desired output.

Now run the tests: `rake`

If nothing complains, congratulations!

## Releasing a new version
Expand Down
39 changes: 39 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
FROM ubuntu:trusty

RUN apt-get update -qq
RUN apt-get install -y apt-transport-https

RUN apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 379CE192D401AB61
RUN echo "deb https://dl.bintray.com/nxadm/rakudo-pkg-debs `lsb_release -cs` main" | tee -a /etc/apt/sources.list.d/rakudo-pkg.list
RUN apt-get update -qq

RUN apt-get install -y \
perl rakudo-pkg curl git build-essential python python-pip \
libssl-dev libreadline-dev zlib1g-dev \
libicu-dev cmake pkg-config

ENV PATH $PATH:/opt/rakudo-pkg/bin
RUN install-zef-as-user && zef install Pod::To::HTML

RUN curl -L http://cpanmin.us | perl - App::cpanminus
RUN cpanm --installdeps --notest Pod::Simple

RUN pip install docutils

ENV PATH $PATH:/root/.rbenv/bin:/root/.rbenv/shims
RUN curl -fsSL https://github.com/rbenv/rbenv-installer/raw/master/bin/rbenv-installer | bash
RUN rbenv install 2.4.1
RUN rbenv global 2.4.1
RUN rbenv rehash

RUN gem install bundler

WORKDIR /data/github-markup
COPY github-markup.gemspec .
COPY Gemfile .
COPY Gemfile.lock .
COPY lib/github-markup.rb lib/github-markup.rb
RUN bundle

ENV LC_ALL en_US.UTF-8
RUN locale-gen en_US.UTF-8
8 changes: 5 additions & 3 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,11 @@ gem "posix-spawn", :platforms => :ruby
gem "redcarpet", :platforms => :ruby
gem "kramdown", :platforms => :jruby
gem "RedCloth"
gem "commonmarker", "~> 0.18.1"
gem "rdoc", "~>3.6"
gem "org-ruby", "= 0.9.9"
gem "creole", "~>0.3.6"
gem "wikicloth", "=0.8.1", :platforms => :ruby
gem "asciidoctor", "= 0.1.4"
gem "rake"
gem "wikicloth", "=0.8.3"
gem "twitter-text", "~> 1.14"
gem "asciidoctor", "~> 2.0.5"
gem "rake"
95 changes: 95 additions & 0 deletions HISTORY.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,98 @@
## 3.0.4 - 2019-04-03

* Expose options in #render_s [#1249](https://github.com/github/markup/pull/1249)
* Upgrade to Asciidoctor 2.0.x [#1264](https://github.com/github/markup/pull/1264)

## 3.0.3 - 2018-12-17

* Temporarily remove support for POD6 [#1248](https://github.com/github/markup/pull/1248)

## 3.0.2 - 2018-12-12

* Add support for POD6 [#1173](https://github.com/github/markup/pull/1173)

## 3.0.1 - 2018-10-19

* Remove linguist-detected RMarkdown files from the Markdown renderer [#1237](https://github.com/github/markup/pull/1237)

## 3.0.0 - 2018-10-18

* Allow passing options through to CommonMarker [#1236](https://github.com/github/markup/pull/1236)
* Symlink option is now a keyword arg [#1236](https://github.com/github/markup/pull/1236)

## 2.0.2 - 2018-10-15

* Don't render rmd files as Markdown [#1235](https://github.com/github/markup/pull/1235)

## 2.0.1 - 2018-06-29

* Create anchor for every =item directive in POD files [#1165](https://github.com/github/markup/pull/1165)

## 2.0.0 - 2018-01-31

* Remove filesystem access [#1157](https://github.com/github/markup/pull/1157)

## 1.7.0 - 2018-01-30

### Changed

* Updates for Linguist v6 [#1139](https://github.com/github/markup/pull/1139)
* Update to Nokogiri ~> 1.8; drop support for Ruby 2.0 [#1156](https://github.com/github/markup/pull/1156)

## 1.6.2 - 2017-11-27

### Changed

* Only report basename in usage [#1131](https://github.com/github/markup/pull/1131)
* rest2html parameter signature fix [#1082](https://github.com/github/markup/pull/1082)

## 1.6.1 - 2017-07-25

### Changed

* Added support for highlight directive in rST [#925](https://github.com/github/markup/pull/925)
* Fixes to documentation and code style [#1009](https://github.com/github/markup/pull/1009) [#1071](https://github.com/github/markup/pull/1071) [#1087](https://github.com/github/markup/pull/1087)
* Test against newer Ruby versions [#1086](https://github.com/github/markup/pull/1086)
* Upgrade to Asciidoctor 1.5.6.1 [#1088](https://github.com/github/markup/pull/1088)

## 1.6.0 - 2017-04-03

### Changed

* Added filename argument to all renderers for additional context
* Removed superfluous `rinku` dependency [#1035](https://github.com/github/markup/pull/1035)
* Enable source-to-source navigation for `.adoc` AsciiDoc files, plus additional attributes passed through [#1039](https://github.com/github/markup/pull/1039) and [#1041](https://github.com/github/markup/pull/1041)

## 1.5.0 - 2017-03-27

### Added

* Re-introduce [#537](https://github.com/github/markup/pull/537) to detect language of markup document
However `github-linguist` is optional and this gem will fallback to extensions for detection.

[Full changelog](https://github.com/github/markup/compare/v1.4.9...v1.5.0)

## 1.4.9 - 2017-03-27

### Changed

* Reverted [#537](https://github.com/github/markup/pull/537) to avoid extra dependencies

[Full changelog](https://github.com/github/markup/compare/v1.4.8...v1.4.9)

## 1.3.3 (2015-02-17)

* Address a slight typo with `POSIX` [#456](https://github.com/github/markup/pull/456)

[Full changelog](https://github.com/github/markup/compare/v1.3.2...v1.3.3)

## 1.3.2 (2015-02-17)

* RST: Output code instead of tt for inline literals [#370](https://github.com/github/markup/pull/370)
* RST: Add IDs to headers so that `.. contents` works with `.. sectnum` [#391](https://github.com/github/markup/pull/391)

[Full changelog](https://github.com/github/markup/compare/v1.3.1...v1.3.2)

## 1.3.1 (2014-11-13)

* Fix name error when trying to use newer versions of RedCarpet [#387](https://github.com/github/markup/pull/387)
Expand Down
Loading