1 |
You might be interested in got hooks [1], especially the post-checkout hook. |
2 |
|
3 |
I would try to automatically recompile the md-> HTML on every checkout, so |
4 |
the HTML is up to date after pulling |
5 |
|
6 |
[1] https://git-scm.com/book/gr/v2/Customizing-Git-Git-Hooks |
7 |
|
8 |
Am Sa., 7. Okt. 2017, 00:58 schrieb Anton Molyboha < |
9 |
anton.stay.connected@×××××.com>: |
10 |
|
11 |
> On Fri, Oct 6, 2017 at 6:49 PM, R0b0t1 <r030t1@×××××.com> wrote: |
12 |
> |
13 |
>> On Fri, Oct 6, 2017 at 5:41 PM, <tuxic@××××××.de> wrote: |
14 |
>> > On 10/06 05:49, Andrew Tselischev wrote: |
15 |
>> >> On Fri, Oct 06, 2017 at 07:07:04PM +0200, tuxic@××××××.de wrote: |
16 |
>> >> > Hi, |
17 |
>> >> > |
18 |
>> >> > The u8g8lib, which contains libraries to drive a great amount of |
19 |
>> >> > displays for mainly embedded electronics has a wiki on github, which |
20 |
>> >> > can be oficially git-pulled as a local copy...which I did. |
21 |
>> >> > |
22 |
>> >> > Now I have tons of *.md (markdown) -files instead of html and I |
23 |
>> >> > dont know of any handy viewer for these. |
24 |
>> >> > |
25 |
>> >> > Since I want to update the repo from time to time |
26 |
>> >> > I dont want to convert them. |
27 |
>> >> > |
28 |
>> >> > Is there any recommended quick and clean way to view these files on |
29 |
>> the fly as |
30 |
>> >> > they would be html? |
31 |
>> >> > |
32 |
>> >> > Thanks a lot for any help in advance! |
33 |
>> >> > Cheers |
34 |
>> >> > Meino |
35 |
>> >> > |
36 |
>> >> |
37 |
>> >> Markdown is a markup language that was specifically designed to be |
38 |
>> readable in the source. |
39 |
>> >> |
40 |
>> >> However, if you still find it hard to read, perhaps syntax |
41 |
>> highlighting in a fancy |
42 |
>> >> text editor can help approximate the intended effects of the markup. |
43 |
>> >> |
44 |
>> >> Also, there are markdown-to-HTML translators. Some are even included |
45 |
>> in portage tree. |
46 |
>> >> |
47 |
>> > |
48 |
>> > |
49 |
>> > I dont want to convert the md-files to html, since I want to update |
50 |
>> > the repo later (see above). |
51 |
>> > The problem are files referencing other files. Reading the md-files |
52 |
>> > via vim (for example) would imply to grab all references by hand. |
53 |
>> > Fortheremore, tne docs are filled with graphics (for example images |
54 |
>> > of the fonts, which can be used), which cannot be displayed with an |
55 |
>> > ASCII-editor. |
56 |
>> > Formatting is necassary with this docs... |
57 |
>> > |
58 |
>> |
59 |
>> Typically what is done is you render the whole Wiki to HTML, and then |
60 |
>> view it in a browser. You don't edit the HTML directly. It should be |
61 |
>> possible to generate it incrementally. |
62 |
>> |
63 |
>> The one catch is that they might be relying on GitHub's integrated |
64 |
>> Wiki system. If they are, you might need to install Gollum to process |
65 |
>> the markdown files to HTML. |
66 |
>> |
67 |
>> Cheers, |
68 |
>> R0b0t1 |
69 |
>> |
70 |
>> |
71 |
> This is a definite overkill, but I'm using JetBrains' IntelliJ Idea |
72 |
> (actually PyCharm) with the markdown plugin. It shows markdown and html |
73 |
> side-to-side in the editor. |
74 |
> |
75 |
> Anton |
76 |
> |
77 |
> |