Skip to content

Commit

Permalink
update to lmp_docs
Browse files Browse the repository at this point in the history
  • Loading branch information
yunwei37 committed Oct 16, 2022
1 parent 4a4770f commit eae4647
Show file tree
Hide file tree
Showing 5 changed files with 38 additions and 13 deletions.
32 changes: 27 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,30 @@ Please see the [theme's docs](https://github.com/cotes2020/jekyll-theme-chirpy#d

This work is published under [MIT][mit] License.

[gem]: https://rubygems.org/gems/jekyll-theme-chirpy
[chirpy]: https://github.com/cotes2020/jekyll-theme-chirpy/
[use-template]: https://github.com/cotes2020/chirpy-starter/generate
[CD]: https://en.wikipedia.org/wiki/Continuous_deployment
[mit]: https://github.com/cotes2020/chirpy-starter/blob/master/LICENSE
- [gem](https://rubygems.org/gems/jekyll-theme-chirpy)
- [chirpy](https://github.com/cotes2020/jekyll-theme-chirpy/)
- [use-template](https://github.com/cotes2020/chirpy-starter/generate)
- [CD](https://en.wikipedia.org/wiki/Continuous_deployment)
- [mit](https://github.com/cotes2020/chirpy-starter/blob/master/LICENSE)

## Add new blog post in LMP

see <https://github.com/linuxkerneltravel/lmp/tree/develop/eBPF_Hub>

all posts should have headers in the first 10 lines like this:

```markdown
---
layout: post
title: sigsnoop
date: 2022-10-10 16:18
category: bpftools
author: yunwei37
tags: [bpftools, syscall, kprobe, tracepoint]
summary: Trace signals generated system wide, from syscalls and others.
---


```

left 2 lines blank after the header.
4 changes: 2 additions & 2 deletions _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ theme: jekyll-theme-chirpy

# Change the following value to '/PROJECT_NAME' ONLY IF your site type is GitHub Pages Project sites
# and doesn't have a custom domain.
baseurl: '/eunomia-repo-frondend'
baseurl: '/lmp_docs'

# The language of the webpage › http://www.lingoes.net/en/translator/langcode.htm
# If it has the same name as one of the files in folder `_data/locales`, the layout language will also be changed,
Expand All @@ -23,7 +23,7 @@ timezone:

title: LMP eBPF-hub # the main title

tagline: A eBPF applications surpermarket # it will display as the sub-title
tagline: An eBPF applications surpermarket # it will display as the sub-title

description: >- # used by seo meta and the atom feed
The world's easiest way to create, manage, and deliver your team's eBPF applications.
Expand Down
2 changes: 2 additions & 0 deletions scripts/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
eunomia-bpf
lmp
12 changes: 7 additions & 5 deletions scripts/Makefile
Original file line number Diff line number Diff line change
@@ -1,14 +1,16 @@
# test with the files in eunomia-bpf
TEST_CASES_DIRS=$(shell ls -l eunomia-bpf/examples/bpftools | grep ^d | awk '{print $$9}')
.PHONY: test
test:
rm -rf eunomia-bpf/
git clone https://github.com/eunomia-bpf/eunomia-bpf --depth 1
rm -rf lmp
git clone https://github.com/linuxkerneltravel/lmp --depth 1 --recursive --shallow-submodules
cd lmp && git checkout develop
$(MAKE) $(TEST_CASES_DIRS)

# test with the files in eunomia-bpf
TEST_CASES_DIRS=$(shell ls -l lmp/eBPF_Hub | grep ^d | awk '{print $$9}')

$(TEST_CASES_DIRS):
echo $@
cp -f eunomia-bpf/examples/bpftools/$@/README.md ../_posts/2020-01-01-$@.md
cp -f lmp/eBPF_Hub/$@/README.md ../_posts/2020-01-01-$@.md
cat ../_posts/2020-01-01-$@.md | grep "summary:" | head -1 | sed 's/^summary://' | xargs -I{} sed -i '10 i > {}\n' ../_posts/2020-01-01-$@.md
sed -i '12 i **Run eBPF program in a line**\n' ../_posts/2020-01-01-$@.md
sed -i '14 i ```sh' ../_posts/2020-01-01-$@.md
Expand Down
1 change: 0 additions & 1 deletion scripts/eunomia-bpf
Submodule eunomia-bpf deleted from 714502

0 comments on commit eae4647

Please sign in to comment.