Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
32 changes: 32 additions & 0 deletions .github/workflows/build-deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: build

on:
push:
branches:
- master
- robbymilo/hugo

jobs:
build-deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0

- name: Setup Hugo
uses: peaceiris/actions-hugo@v2
with:
hugo-version: '0.83.1'
extended: true

- name: Build
run: hugo --minify

- name: Deploy
uses: netlify/actions/cli@master
with:
args: deploy --dir public --alias hugo-robbymilo
env:
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }}
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,7 @@ __pycache__/
# Ignore virtual environments
/env/
py2-venv

### hugo
public
resources
39 changes: 39 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
HUGO_VERSION = 0.83.1

-include .env
export

#
# Hugo installation
#

.PHONY: install-mac
install-mac:
curl -sSL https://github.com/gohugoio/hugo/releases/download/v$(HUGO_VERSION)/hugo_extended_$(HUGO_VERSION)_macOS-64bit.tar.gz \
| sudo tar -v -C /usr/local/bin -xz \
&& sudo chmod 755 /usr/local/bin/hugo \
&& /usr/local/bin/hugo version

.PHONY: install-linux
install-linux:
curl -sSL https://github.com/gohugoio/hugo/releases/download/v$(HUGO_VERSION)/hugo_extended_$(HUGO_VERSION)_Linux-64bit.tar.gz \
| sudo tar -v -C /usr/local/bin -xz \
&& sudo chmod 755 /usr/local/bin/hugo \
&& /usr/local/bin/hugo version

rename:
cd content/blog && find -type f -name "*.md" -execdir mv -v {} index.md \;

firstline:
cd content/blog && find -type f -name "*.md" -exec sed -i '1 i\---' {} +

secondline: #shell only
cd content/blog && find -type f -name "*.md" -exec sed -i '0,/^$/{s/^$/---/}' {} > index.md +

.PHONY: server
server:
rm -rf public && hugo server --renderToDisk

.PHONY: output
output:
find output -name "*.html" -print > output.csv && sed 's/output/https:\/\/darktable.org/g' output.csv | tee output2.csv && sed 's/index.html//g' output2.csv | tee output.csv && rm output2.csv
64 changes: 4 additions & 60 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,66 +1,10 @@

# darktable Website

This repository holds the [Pelican][] source code of the [darktable.org][] website. Help improving the website by submitting pull-requests.
A work-in-progress for a hugo port of the darktable website.

[darktable.org]: http://darktable.org
[Pelican]: https://blog.getpelican.com/
## Get started

The website is a static site, pre-generated from source files using [Pelican][](Python).
Make sure you have hugo version `0.78.2` installed. You can run `make install-mac` or `make install-linux`.


## Tools

Pelican uses Python.
The site is currently built using:

```bash
$ python --version
Python 2.7.13

$ pelican --version
3.6.3

$ markdown_py --version
markdown_py 2.6.6
```

Additionally, some extra modules should be available:

* PIL/pillow
`$ pip install pillow`
* python-twitter
`$ pip install python-twitter`
* BeautifulSoup
`$ pip install bs4`
* Typogrify
`$ pip install typogrify`


## Getting Started

It's generally good practice to use a [virtual environment](https://docs.python-guide.org/dev/virtualenvs/):

```bash
$ virtualenv2 env/
$ source env/bin/activate
$ pip install -r requirements.txt
```

To build the site:
```bash
$ pelican -s pelicanconf.py
```

The entire site will then be available in the `output` directory.
If you don't already have SimpleHTTPServer install it:

```bash
$ pip install SimpleHTTPServer
```

To serve the site via HTTP, launch:

```bash
$ cd output/ && python2 -m SimpleHTTPServer 8000
```
Then, run `make server` and navigate to `http://localhost:1313`.
24 changes: 24 additions & 0 deletions config/_default/config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
baseURL: 'https://www.darktable.org'
title: darktable
theme: darktable
permalinks:
news: /:year/:month/:slug/
blog: /:year/:month/:slug/
enableGitInfo: true
markup:
goldmark:
renderer:
unsafe: true
taxonomies:
tag: tags
author: author
disableKinds: ['taxonomyTerm']
outputFormats:
SearchIndex:
mediaType: "application/json"
baseName: "searchindex"
isPlainText: true
notAlternative: true
outputs:
home: ["HTML","RSS", "SearchIndex"]
paginatePath: ""
78 changes: 78 additions & 0 deletions content/_index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,78 @@
---
title: darktable
home_lede: /images/lede-home.jpg
home_logo: /images//darktable-logo-name-1520w.png
---
<div class='container content description'>
<div class='row'>
<div class='column'>
<p>darktable is an open source photography workflow application and raw developer. A virtual lighttable and darkroom for photographers. It manages your digital negatives in a database, lets you view them through a zoomable lighttable and enables you to develop raw images and enhance them.</p>
<p>Have a look at our current <a href="/about/features/" title="features">features</a> and how to <a href="/install/" title="install">install</a> it on your system.</p>
</div>
</div>
</div>

<section class='screenshot'>
<img src='/images/screenshot_lighttable.jpg' width='1440' height='900'>
</section>


<section class='description'>

<div class="container title">
<div class="row">
<div class="column">
<h2 class="desc-title">by photographers</h2>
</div>
</div>
</div>
<div class='container content feature'>
<div class='row'>
<div class='column'>
<p>
darktable is created <em>for photographers, by photographers</em>.
</p>
<p>
Having developers that are also avid photographers as part of the target audience is good for understanding the real world problems, challenges, and workflows.
</p>
</div>
</div>
</div>


<div class="container title">
<div class="row">
<div class="column">
<h2 class="desc-title">powerful</h2>
</div>
</div>
</div>
<div class='container content feature'>
<div class='row'>
<div class='column'>
<p>
darktable edits your images non-destructively all the way through its pipeline. Your original image is never modified! Professional color management features ensure fidelity all the way to print and GPU accelerated processing means you can speed up your workflow using your video card.
</p>
</div>
</div>
</div>


<div class="container title">
<div class="row">
<div class="column">
<h2 class="desc-title">community</h2>
</div>
</div>
</div>
<div class='container content feature'>
<div class='row'>
<div class='column'>
<p>
You do not need to write code to be involved in the darktable community! You can help other users by providing your input on the <a href="/contact/#how-to-get-in-contact" title="How to get in contact">mailing list</a> or the <a href="https://discuss.pixls.us/c/software/darktable" title="darktable Category on PIXLS.US">forum</a>. If you'd like to show others what darktable is capable of, contribute to the <a href="https://www.flickr.com/groups/1284326@N23/" title="darktable Flickr Group">Flickr</a> page. If you can write code, check out the <a href="https://github.com/darktable-org/darktable" title="darktable Repository on Github">source code</a>!
</p>
</div>
</div>
</div>

</section>
11 changes: 7 additions & 4 deletions content/pages/about/about.md → content/about/_index.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
Title: about
Date: 2017-05-23T15:16:37-06:00
---
title: about
date: 2017-05-23T15:16:37-06:00
lede: lede-about.jpg
lede_author: <a href="https://jo.dreggn.org/home/">jo</a>

weight: 300
menu: ["main", "footer"]
---
*darktable is an open source photography workflow application and raw developer. A virtual lighttable and darkroom for photographers. It manages your digital negatives in a database, lets you view them through a zoomable lighttable and enables you to develop raw images and enhance them.*

Raw is the unprocessed capture straight from the camera's sensor to the memory card, nothing has been altered. There are multiple alternatives in the open source world for raw development (ufraw, dcraw, rawtherapee) but darktable tries to fill the gap between the excellent existing free raw converters and image management tools (such as e.g. ufraw, rawstudio, f-spot, digikam, shotwell). It focuses on the workflow to make it easier for the photographer to quickly handle the thousands of images a day of shooting can produce. It's also one of the very few FOSS projects able to do tethered shooting.
Expand All @@ -13,7 +16,7 @@ The user interface is built around efficient caching of image metadata and mipma

All editing is fully non-destructive and only operates on cached image buffers for display. The full image is only converted during export. Raw image loading is done using rawspeed, high-dynamic range and standard image formats such as jpeg are also supported. The core operates completely on floating point values, so darktable can not only be used for photography but also for scientifically acquired images or output of renderers (high dynamic range).

For a more complete list of darktable's current features have a look at the [features]({filename}/pages/about/features.md) page. Or&nbsp;– even better&nbsp;– just [install]({filename}/pages/install.md) it and try it out!
For a more complete list of darktable's current features have a look at the [features](/about/features/) page. Or&nbsp;– even better&nbsp;– just [install](/install/) it and try it out!

darktable is released under the terms of the [GNU General Public License Version 3](https://www.gnu.org/licenses/gpl-3.0.txt) or later.

File renamed without changes
16 changes: 9 additions & 7 deletions content/pages/about/faq.md → content/about/faq.md
Original file line number Diff line number Diff line change
@@ -1,18 +1,20 @@
---
Title: faq
Slug: about/faq
Date: 2017-09-20T16:18:43-06:00
author: smn
wordpress_id: 1536
lede: lede-faq.jpg
lede_author: <a href="https://jo.dreggn.org/home/">jo</a>

weight: 1
menu: "footer"
---
* <a name="faq-spelling"></a>**So, I have seen a bunch of different ways to spell *darktable*. Which one is right?**<a href="#faq-spelling" class="anchor" title="Link to this FAQ entry">¶</a>

There is only one way, and that is "darktable". All lower case, in one word. Even when starting a sentence. Example: darktable is a great program.

* <a name="faq-contact"></a>**What's the best way to contact the developers/report bugs?**<a href="#faq-contact" class="anchor" title="Link to this FAQ entry">¶</a>

For fast discussions and short questions it's best to visit us in IRC (on _irc.oftc.net_, channel #darktable), especially in the Western European evening hours. If you don't want to use IRC, don't know what it is or want something less transient you can use our mailing lists. See our [contact page]({filename}/pages/contact.md).
For fast discussions and short questions it's best to visit us in IRC (on _irc.oftc.net_, channel #darktable), especially in the Western European evening hours. If you don't want to use IRC, don't know what it is or want something less transient you can use our mailing lists. See our [contact page](/contact).

* <a name="faq-red-borders"></a>**After updating my system I suddenly see red borders and giant buttons everywhere!**<a href="#faq-red-borders" class="anchor" title="Link to this FAQ entry">¶</a>

Expand All @@ -28,10 +30,10 @@ lede_author: <a href="https://jo.dreggn.org/home/">jo</a>
* then add the following line on the beginning of the created css file: `@import url("/path/to/darktable.css");`, where the `/path/to/darktable.css` is the path... to the default darktable CSS (or one of the other themes you want to edit).
* last step is to copy parts of the pointed css you want to edit and adjust settings as you want.
* Be aware: darktable 3.0 brings a whole new UI, so 3.0 CSS themes are not compatible with previous releases, and previous 2.4 and 2.6 themes are not compatible with darktable 3.0.

Since darktable 3.2, released in august 2020, tweak CSS is far more easier. Forget steps describe just above for that and just go in preferences window. See first general tab and: just select your theme, check _modify selected theme with tweaks below_ and add your tweaks in text field below, then save your tweaks. That's all!
By the way, CSS file should be easier to read and lot of comments will help you find faster CSS part you want to tweak and so copy/modify in preferences.

By the way, CSS file should be easier to read and lot of comments will help you find faster CSS part you want to tweak and so copy/modify in preferences.

* <a name="faq-rename-files"></a>**How do I rename files on my hard disk?**<a href="#faq-rename-files" class="anchor" title="Link to this FAQ entry">¶</a>

Expand Down Expand Up @@ -71,7 +73,7 @@ lede_author: <a href="https://jo.dreggn.org/home/">jo</a>

* <a name="faq-docs"></a>**This confuses me. Is there a manual?**<a href="#faq-docs" class="anchor" title="Link to this FAQ entry">¶</a>

Yes, [here](/usermanual/en/). There is also [a book]({filename}/pages/resources/resources.md#the-book) in finished PDF format or .zip file containing the Open Document source and image files. Pascal has created some [screencast tutorials]({filename}/pages/resources/resources.md#screencast-tutorials) that cover many fundamental use cases and descriptions of technical expressions. You might also want to read through the [blog section](/blog/) of this website.
Yes, [here](/usermanual/en/). There is also [a book](/resources/resources/#the-book) in finished PDF format or .zip file containing the Open Document source and image files. Pascal has created some [screencast tutorials](/resources/resources/#screencast-tutorials) that cover many fundamental use cases and descriptions of technical expressions. You might also want to read through the [blog section](/blog/) of this website.

* <a name="faq-old-presets"></a>**My auto-applied presets aren't enabled for pictures imported before upgrade to version 1.1 (or higher), what's happening?**<a href="#faq-old-presets" class="anchor" title="Link to this FAQ entry">¶</a>

Expand Down
Loading