Skip to content

Commit

Permalink
Fix website relative paths
Browse files Browse the repository at this point in the history
Reviewed By: yashpatel5400

Differential Revision: D17578490

fbshipit-source-id: f439f247e3bb2e6ebb5e40e562f094ea17acec0f
  • Loading branch information
aparrapo authored and facebook-github-bot committed Sep 25, 2019
1 parent 9b1e423 commit 790bc31
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 11 deletions.
4 changes: 2 additions & 2 deletions docs/api.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ sidebar_label: API
---

We automatically generate our API documentation with Doxygen:
- [Scripts (Python)](/scripts/html/)
- [Source (C++)](/source/html/)
- [Scripts (Python)](../scripts/html/)
- [Source (C++)](../source/html/)

For quick reference, here is a list of the binaries in our repository and descriptions of
their uses along with an example.
Expand Down
8 changes: 4 additions & 4 deletions docs/workflows.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,22 +10,22 @@ The render pipeline offers flexibility for arbitrary render workflows. Some comm
If no background image is available depth estimation is performed on the entire image for each camera. This method can used to render the background itself, or to get an idea of what the final render can look like.
Note that this reduces the speed and accuracy of the result.

![render](/img/render.png)
![render](../img/render.png)

## With Background
To improve the speed and accuracy of the results a background image of the empty scene can be. This is the recommended workflow and should produce results on par with those in our sample rendered datasets.

![render_background](/img/render_background.png)
![render_background](../img/render_background.png)

## Upsampled
Sometimes a per-camera disparity resolution greater than 2048 is desired. This is usually useful
for generating some of the non-6DoF output formats (e.g. equirect disparity). In this case,
an additional upsampling step is performed. This is recommended only if rendering a high
resolution non-6DoF where high resolutions are available at input (i.e. input color images exceeding 2048 resolution).

![render_upsample](/img/render_upsample.png)
![render_upsample](../img/render_upsample.png)

## Multiple Outputs
After producing the disparity maps multiple 6DoF and non-6DoF outputs can be produced using the steps found in the [Render](/docs/render) section.

![render_simple_mesh_renderer](/img/render_view.png)
![render_simple_mesh_renderer](../img/render_view.png)
6 changes: 3 additions & 3 deletions website/core/Footer.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,13 +37,13 @@ class Footer extends React.Component {
</a>
<div>
<h5>Docs</h5>
<a href={this.docUrl('install.html', this.props.language)}>
<a href={this.docUrl('install.html')}>
Getting Started
</a>
<a href={this.docUrl('api.html', this.props.language)}>
<a href={this.docUrl('api.html')}>
API Reference
</a>
<a href={this.docUrl('calibration.html', this.props.language)}>
<a href={this.docUrl('calibration.html')}>
Tutorial
</a>
</div>
Expand Down
2 changes: 1 addition & 1 deletion website/pages/en/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ class HomeSplash extends React.Component {
<div className="inner">
<PromoSection>
<Button href="https://github.com/facebook/facebook360_dep">Start Hacking</Button>
<Button href="/docs/install">Tutorial</Button>
<Button href={siteConfig.baseUrl + "docs/install"}>Tutorial</Button>
</PromoSection>
</div>
</SplashContainer>
Expand Down
6 changes: 5 additions & 1 deletion website/siteConfig.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,12 @@ const siteConfig = {
title: 'facebook360_dep',
tagline: 'Facebook360 Depth Estimation Pipeline',
url: 'https://facebook.github.io',
baseUrl: '/', // Base URL for your project
baseUrl: '/facebook360_dep/', // Base URL for your project

// Used for publishing and more
projectName: 'facebook360_dep',
repo: 'facebook/facebook360_dep',
editUrl: 'https://github.com/facebook/facebook360_dep/edit/master/docs/',
organizationName: 'facebook',

// For no header links in the top nav bar -> headerLinks: [],
Expand All @@ -36,6 +38,8 @@ const siteConfig = {
secondaryColor: '#5890ff',
},

separateCss: ["static/source/html", "static/scripts/html"],

// Copyright info
copyright: `Copyright © ${new Date().getFullYear()} Facebook Inc.`,

Expand Down

0 comments on commit 790bc31

Please sign in to comment.