forked from FFmpeg/web
-
Notifications
You must be signed in to change notification settings - Fork 0
/
README
68 lines (47 loc) · 2.46 KB
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
ffmpeg.org official website
GENERATE THE WEBSITE
--------------------
`lessc` is required to generate CSS of the website.[1]
Type `make` to generate the website.
Type `make clean` to remove the generated files.
GENERATE THE DOCUMENTATION
--------------------------
/!\ None of the generated versions of the website contain the documentation.
To generate the documentation pages:
- Add the HTML wrappers to your environment:
$ export FFMPEG_HEADER1="$(cat src/template_head1 src/template_doctitle src/template_head_prod)"
$ export FFMPEG_HEADER2="$(cat src/template_head2 src/template_doctitle src/template_head3)"
$ export FFMPEG_FOOTER="$(cat src/template_footer1 src/template_footer_prod src/template_footer2)"
- Get the main ffmpeg repo:
$ git clone git://source.ffmpeg.org/ffmpeg.git
- Compile the documentation using the ffmpeg main repo Makefile:
$ make doc
- Copy the generated HTML files inside the website:
$ cp /path/to/ffmpeg/doc/*.html /path/to/ffmpeg-web/htdocs/
In case of a major CSS update, please also update the `style.min.css` file in
the main FFmpeg repo:
$ cat /path/to/ffmpeg-web/src/css_credit /path/to/ffmpeg-web/htdocs/css/{bootstrap.min.css,style.min.css} > /path/to/ffmpeg/doc/style.min.css
WEBSITE DEVELOPERS INSTRUCTIONS
-------------------------------
npm, lessc and bower are required to generate the website in development.[2]
Type `make DEV=1` to generate the website for development.
Type `make clean DEV=1` to remove the generated files.
In development mode, the external dependencies are downloaded through bower.
Thanks to lessc, you can edit the *.less sources and see the changes on your
browser without having to reload it.
-----
[1] lessc is available on the packages of some distributions.
Otherwise, follow the instructions in [2].
lessc depends on lots of stuff including npm, so if you wish to use a lighter version,
you might want to check out the C++ version: http://www.vanderkroef.net/clessc.html
[2] Install instructions, 2 methods:
- Install everything globally (root required)
- Install npm from the packages or the sources: http://nodejs.org/
- Install lessc and bower using npm:
$ sudo npm install -g bower less
- Install only npm globally
- Install npm from the packages or the sources: http://nodejs.org/
- Install lessc and bower in the current directory using npm:
$ npm install bower less
- Add the path to your environment:
$ export PATH=`pwd`/node_modules/bower/bin:`pwd`/node_modules/less/bin:$PATH