Wilkommen zu MkDocs
Die vollständige Dokumentation finden Sie unter mkdocs.org.
Befehle
mkdocs new [dir-name]
- Erstellt ein neues Projekt.mkdocs serve
- Startet den live-reloadenden Doku-Server.mkdocs build
- Erstellt die Dokumentationsseite.mkdocs -h
- Hilfemeldung drucken und beenden.
Projekt-Layout
mkdocs.yml # Die Konfiguration.
docs/
index.md # Die Homepage der Dokumentation.
... # Andere Markdown-Seiten, Bilder und andere Dateien.
"Hello World!" in Python und Java
print("Hello, world!")
import java.util.concurrent.Callable;
import java.util.concurrent.ExecutionException;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;
import java.util.concurrent.Future;
public class HelloWorld {
private static final String MESSAGE_PART1 = "Hello";
private static final String MESSAGE_PART2 = "world";
public static void main(String[] args) {
ExecutorService executorService = Executors.newSingleThreadExecutor();
Callable<String> task = () -> {
return MESSAGE_PART1 + ", " + MESSAGE_PART2 + "!";
};
Future<String> future = executorService.submit(task);
try {
String result = future.get();
System.out.println(result);
} catch (InterruptedException | ExecutionException e) {
e.printStackTrace();
} finally {
executorService.shutdown();
}
}
}