mirror of
https://github.com/cirosantilli/linux-kernel-module-cheat.git
synced 2026-01-23 02:05:57 +01:00
Move all non-README links to cirosantilli.com where the file is not cut off...
This commit is contained in:
@@ -14,7 +14,7 @@ class Main(common.LkmcCliFunction):
|
||||
'show_time': False,
|
||||
},
|
||||
description='''\
|
||||
https://github.com/cirosantilli/linux-kernel-module-cheat#build-the-documentation
|
||||
https://cirosantilli.com/linux-kernel-module-cheat#build-the-documentation
|
||||
''',
|
||||
)
|
||||
self.add_argument(
|
||||
@@ -70,13 +70,13 @@ from the README to example sources to GitHub rather than locally.
|
||||
'git',
|
||||
'grep',
|
||||
'--fixed-strings',
|
||||
self.env['github_repo_id_url'] + '#',
|
||||
self.env['homepage_url'] + '#',
|
||||
LF
|
||||
],
|
||||
cwd=self.env['root_dir']
|
||||
).splitlines():
|
||||
url_index = grep_line.index(self.env['github_repo_id_url'])
|
||||
hash_start_index = url_index + len(self.env['github_repo_id_url'])
|
||||
url_index = grep_line.index(self.env['homepage_url'])
|
||||
hash_start_index = url_index + len(self.env['homepage_url'])
|
||||
if len(grep_line) > hash_start_index:
|
||||
hash_str = grep_line_hash_re.search(grep_line[hash_start_index + 1:]).group(1)
|
||||
if not hash_str in header_ids:
|
||||
|
||||
Reference in New Issue
Block a user