This small Ruby script uses pandoc to convert The Rust Programming Language (compilation of the Rust guides) to epub.
- Install pandoc
- Copy
trpl-epub.rbfile torust/src/doc/trpl(assuming your clone of the Rust repository is inrust/)
| require 'test_helper' | |
| require 'minitest/autorun' | |
| module Tenderlove | |
| class Spec < MiniTest::Spec | |
| include ActiveSupport::Testing::SetupAndTeardown | |
| include ActiveRecord::TestFixtures | |
| alias :method_name :__name__ if defined? :__name__ | |
| self.fixture_path = File.join(Rails.root, 'test', 'fixtures') |
| "use strict"; | |
| var MyClass = (function() { | |
| function MyClass(publicString) { | |
| this.publicString = publicString; | |
| }; | |
| var privateString = "I'm a private string that can't be accessed directly"; | |
| // ============================================================================ |
This small Ruby script uses pandoc to convert The Rust Programming Language (compilation of the Rust guides) to epub.
trpl-epub.rb file to rust/src/doc/trpl (assuming your clone of the Rust repository is in rust/)