Commit Graph

23 Commits

Author SHA1 Message Date
Akhil G Krishnan 61090b1f3f Add rake guides:lint task to raise error on broken anchor links
Co-authored-by: zzak <zzakscott@gmail.com>
2024-05-01 17:29:35 +05:30
Geon George 56e96d9344 Replaces mobi guide with epub for docs because of discontinued support
Removes kindlerb logic

Adds template for epub generator

Renames the kindle dir to /epub

Adds epub module to generator and replaces kindle

Fixes mimetype

Creates basic epub book

Deletes old kindle module

Adds zip package

Updates rubyzip gem name

Removes now unused gepub gem

Adds the required container file for epubs

Fixes media type

Adds new epub generation logic

Removes all buttons from output html

Refactors and generates valid epub files

Removes frontmatter logic used for kindlegen

Filters out epub files in zip

Updates link to kindle doc on sidebar

Fixes rubocop issues

Adds deprecation warning for the old kindle task

Refactors and cleans up epub module

Cleans up epub code

Cleans up private internal method code style

Removes unnecessary imagemagick check
2022-08-05 00:18:20 +05:30
Yosuke Kabuto cb343ef672 Use safe nav operator when calling RailsGuides::Generator.new
Use String for direction of RailsGuides::Generator
2018-12-05 12:41:07 +09:00
Alberto Almagro 5020c2e302 Use direction instead of rtl flag.
Improve readability by using `direction` as CSS does.

More info: https://developer.mozilla.org/en-US/docs/Web/CSS/direction
Continues: #34486

[Alberto Almagro + Ufuk Kayserilioglu]
2018-11-22 22:39:13 +01:00
tamarr 29e0ed13f5
allow right to left styling of docs (#3)
* adding rtl css main file and logic to use
2018-11-19 18:59:52 +02:00
Koichi ITO 1f37d846a9 Use frozen string literal in guides/ 2017-08-13 22:04:09 +09:00
Matthew Draper 87b3e226d6 Revert "Merge pull request #29540 from kirs/rubocop-frozen-string"
This reverts commit 3420a14590, reversing
changes made to afb66a5a59.
2017-07-02 02:15:17 +09:30
Kir Shatrov cfade1ec7e Enforce frozen string in Rubocop 2017-07-01 02:11:03 +03:00
Xavier Noria 771a802c37 refactors and fixes in guides generation [ci skip]
This commit is not precisely atomic, but the changes have evolved, summary:

* The ENV-based interface has been moved upwards, the generator has now a conventional
  initializer.

* RAILS_VERSION is now assumed to be a Git tag. A blank RAILS_VERSION means edge guides.

* In consequence, the EDGE env variable is gone.

* The "local" version is also gone, the current SHA1 is computed for edge guides.

* Assumes guides are generated from a repo checkout (time ago users could
  generate them from gems.)

* The WARNINGS flag is gone in consequence, you cannot disable warnings.

* The `api_link` Markdown helper is fixed.

* Docs about usage have one single place: rake guides:help.

* Links in guides have been revised.
2017-02-12 10:33:50 +01:00
Xavier Noria 6b3719b757 applies new string literal convention in guides
The current code base is not uniform. After some discussion,
we have chosen to go with double quotes by default.
2016-08-06 19:21:59 +02:00
Yves Senn 8adfba360b Merge pull request #19240 from yui-knk/refactor/guide_rb
Remove gem check in guides/rails_guides.rb

Conflicts:
	guides/rails_guides.rb
2015-03-18 12:32:10 +01:00
yui-knk ec895167c2 Fix place of require 'rails_guides/markdown' 2015-03-07 16:50:27 +09:00
yui-knk 2a307623a2 Remove gem check in guides/rails_guides.rb
Now rails/Gemfile includes nokogiri and redcarpet,
so remove gem check from guides/rails_guides.rb
2015-03-07 13:38:59 +09:00
Robin Dupret ece28185a8 Update Redcarpet to version 3.2.2 2015-01-03 12:57:22 +01:00
Robin Dupret ad3628b311 Update Redcarpet to 3.1.2
This version fixes an API breakage between 3.0 and 3.1 ; the header
method's arity should not have changed.

[ci skip]
2014-05-14 19:52:47 +02:00
Nate Berkopec 220528548b Guides: output valid HTML5
[ci skip]
2014-05-05 17:42:04 -04:00
laurocaetano d48222d22e remove warnings on ruby trunk 2013-11-01 18:15:53 -02:00
Prathamesh Sonpatki 2c02fc3fd7 Add error message for including nokogiri in Gemfile for rake doc:guides [ci skip]
- When `rake doc:guides` is run from applications, it complains for
  presence of redcarpet if it not present in Gemfile
- Similarly it should complain about nokogiri
2013-08-22 09:11:34 +05:30
Teng Siong Ong 5aec73daf5 Make `rake doc:guides` works again. Fix #10384. 2013-04-30 06:49:03 -07:00
Prem Sichanugrist 5e2866cc34 No more Textile guide generation support 2012-09-17 15:55:17 -04:00
Prem Sichanugrist 544f6bcb90 Start rewriting 4.0 release note into Markdown 2012-09-17 15:54:21 -04:00
Santiago Pastorino 6e55d30ca8 Remove remaining require 'rubygems' 2012-05-13 13:33:20 -03:00
Xavier Noria 6d87cd028b moves the guides up to the root directory 2012-03-17 08:32:49 -07:00