mirror of
https://github.com/cirosantilli/linux-kernel-module-cheat.git
synced 2026-01-22 17:55:57 +01:00
split header
This commit is contained in:
3
Gemfile
3
Gemfile
@@ -1,5 +1,6 @@
|
|||||||
source 'https://rubygems.org'
|
source 'https://rubygems.org'
|
||||||
|
|
||||||
gem 'asciidoctor', '2.0.10'
|
gem 'asciidoctor', '2.0.11'
|
||||||
|
gem 'asciidoctor-multipage', '0.0.12'
|
||||||
#gem 'jekyll', '3.8.6'
|
#gem 'jekyll', '3.8.6'
|
||||||
gem 'github-pages'
|
gem 'github-pages'
|
||||||
|
|||||||
@@ -8,7 +8,9 @@ GEM
|
|||||||
tzinfo (~> 1.1)
|
tzinfo (~> 1.1)
|
||||||
addressable (2.6.0)
|
addressable (2.6.0)
|
||||||
public_suffix (>= 2.0.2, < 4.0)
|
public_suffix (>= 2.0.2, < 4.0)
|
||||||
asciidoctor (2.0.10)
|
asciidoctor (2.0.11)
|
||||||
|
asciidoctor-multipage (0.0.12)
|
||||||
|
asciidoctor (>= 2.0.11, < 2.1)
|
||||||
coffee-script (2.4.1)
|
coffee-script (2.4.1)
|
||||||
coffee-script-source
|
coffee-script-source
|
||||||
execjs
|
execjs
|
||||||
@@ -243,8 +245,9 @@ PLATFORMS
|
|||||||
ruby
|
ruby
|
||||||
|
|
||||||
DEPENDENCIES
|
DEPENDENCIES
|
||||||
asciidoctor (= 2.0.10)
|
asciidoctor (= 2.0.11)
|
||||||
|
asciidoctor-multipage (= 0.0.12)
|
||||||
github-pages
|
github-pages
|
||||||
|
|
||||||
BUNDLED WITH
|
BUNDLED WITH
|
||||||
2.0.2
|
2.2.5
|
||||||
|
|||||||
@@ -18,7 +18,11 @@ https://zenodo.org/badge/latestdoi/64534859[image:https://zenodo.org/badge/64534
|
|||||||
|
|
||||||
TL;DR: xref:qemu-buildroot-setup-getting-started[xrefstyle=full]
|
TL;DR: xref:qemu-buildroot-setup-getting-started[xrefstyle=full]
|
||||||
|
|
||||||
The source code for this page is located at: https://github.com/cirosantilli/linux-kernel-module-cheat[]. Due to https://github.com/isaacs/github/issues/1610[a GitHub limitation], this README is too long and not fully rendered on github.com, so either use: https://cirosantilli.com/linux-kernel-module-cheat or <<build-the-documentation,build the docs yourself>>.
|
The source code for this page is located at: https://github.com/cirosantilli/linux-kernel-module-cheat[]. Due to https://github.com/isaacs/github/issues/1610[a GitHub limitation], this README is too long and not fully rendered on github.com, so either use:
|
||||||
|
|
||||||
|
* https://cirosantilli.com/linux-kernel-module-cheat
|
||||||
|
* https://cirosantilli.com/linux-kernel-module-cheat/index-split[]: split header version
|
||||||
|
* <<build-the-documentation,build the docs yourself>>
|
||||||
|
|
||||||
image::https://raw.githubusercontent.com/cirosantilli/china-dictatorship-media/master/Xinjiang_prisoners_sitting_identified.jpeg[width=800]
|
image::https://raw.githubusercontent.com/cirosantilli/china-dictatorship-media/master/Xinjiang_prisoners_sitting_identified.jpeg[width=800]
|
||||||
|
|
||||||
|
|||||||
31
build-doc
31
build-doc
@@ -32,21 +32,36 @@ from the README to example sources to GitHub rather than locally.
|
|||||||
link_target_script = 'link-target-github.rb'
|
link_target_script = 'link-target-github.rb'
|
||||||
else:
|
else:
|
||||||
link_target_script = 'link-target-up.rb'
|
link_target_script = 'link-target-up.rb'
|
||||||
|
common_cmd = [
|
||||||
|
'bundle', LF,
|
||||||
|
'exec', LF,
|
||||||
|
'asciidoctor', LF,
|
||||||
|
'--attribute', 'docinfo=shared', LF,
|
||||||
|
'--failure-level', 'info', LF,
|
||||||
|
'--require', os.path.join(asciidoctor_dir, link_target_script), LF,
|
||||||
|
'--trace', LF,
|
||||||
|
'--verbose', LF,
|
||||||
|
]
|
||||||
exit_status = self.sh.run_cmd(
|
exit_status = self.sh.run_cmd(
|
||||||
|
common_cmd +
|
||||||
[
|
[
|
||||||
'asciidoctor', LF,
|
|
||||||
'--attribute', 'docinfo=shared', LF,
|
|
||||||
'--failure-level', 'info', LF,
|
|
||||||
'--require', os.path.join(asciidoctor_dir, link_target_script), LF,
|
|
||||||
'--out-file', self.env['readme_out'], LF,
|
'--out-file', self.env['readme_out'], LF,
|
||||||
'--trace', LF,
|
|
||||||
'--verbose', LF,
|
|
||||||
] +
|
|
||||||
[
|
|
||||||
self.env['readme'], LF,
|
self.env['readme'], LF,
|
||||||
],
|
],
|
||||||
out_file=self.env['build_doc_log'],
|
out_file=self.env['build_doc_log'],
|
||||||
)
|
)
|
||||||
|
if exit_status == 0:
|
||||||
|
exit_status = self.sh.run_cmd(
|
||||||
|
common_cmd +
|
||||||
|
[
|
||||||
|
'-D', self.env['out_doc_dir'], LF,
|
||||||
|
'-a', 'multipage-level=6', LF,
|
||||||
|
'-b', 'multipage_html5', LF,
|
||||||
|
'-r', 'asciidoctor-multipage', LF,
|
||||||
|
self.env['readme'], LF,
|
||||||
|
],
|
||||||
|
out_file=self.env['build_doc_multipage_log'],
|
||||||
|
)
|
||||||
|
|
||||||
# Check that all local files linked from README exist.
|
# Check that all local files linked from README exist.
|
||||||
external_link_re = re.compile('^https?://')
|
external_link_re = re.compile('^https?://')
|
||||||
|
|||||||
@@ -53,8 +53,10 @@ if consts['in_docker']:
|
|||||||
else:
|
else:
|
||||||
consts['out_dir'] = os.path.join(consts['root_dir'], 'out')
|
consts['out_dir'] = os.path.join(consts['root_dir'], 'out')
|
||||||
consts['readme'] = os.path.join(consts['root_dir'], 'README.adoc')
|
consts['readme'] = os.path.join(consts['root_dir'], 'README.adoc')
|
||||||
|
consts['out_doc_dir'] = os.path.join(consts['out_dir'], 'doc')
|
||||||
consts['readme_out'] = os.path.join(consts['out_dir'], 'README.html')
|
consts['readme_out'] = os.path.join(consts['out_dir'], 'README.html')
|
||||||
consts['build_doc_log'] = os.path.join(consts['out_dir'], 'build-doc.log')
|
consts['build_doc_log'] = os.path.join(consts['out_dir'], 'build-doc.log')
|
||||||
|
consts['build_doc_multipage_log'] = os.path.join(consts['out_dir'], 'build-doc-multipage.log')
|
||||||
consts['gem5_out_dir'] = os.path.join(consts['out_dir'], 'gem5')
|
consts['gem5_out_dir'] = os.path.join(consts['out_dir'], 'gem5')
|
||||||
consts['kernel_modules_build_base_dir'] = os.path.join(consts['out_dir'], 'kernel_modules')
|
consts['kernel_modules_build_base_dir'] = os.path.join(consts['out_dir'], 'kernel_modules')
|
||||||
consts['buildroot_out_dir'] = os.path.join(consts['out_dir'], 'buildroot')
|
consts['buildroot_out_dir'] = os.path.join(consts['out_dir'], 'buildroot')
|
||||||
|
|||||||
@@ -10,7 +10,9 @@ git checkout master -- \
|
|||||||
_config.yml \
|
_config.yml \
|
||||||
;
|
;
|
||||||
cp out/README.html index.html
|
cp out/README.html index.html
|
||||||
git add index.html
|
cp out/doc/* .
|
||||||
|
mv README.html index.html
|
||||||
|
git add .
|
||||||
git commit --message "$(git log -n1 --pretty='%H' master)"
|
git commit --message "$(git log -n1 --pretty='%H' master)"
|
||||||
git push
|
git push
|
||||||
git checkout -
|
git checkout -
|
||||||
|
|||||||
Reference in New Issue
Block a user