跳轉到內容

ROSE 編譯器框架/網站

來自華夏公益教科書

收集輸入,以便我們擁有一個專業的、使用者友好且易於維護的 ROSE 專案官方網站。

目標受眾

[編輯 | 編輯原始碼]

確定誰將訪問我們的網站對於指導網站設計至關重要

1. 贊助商

  • DOE 專案經理
  • LLNL 官員

2. 員工

  • 易於維護:越簡單越好
  • 易於執行災難恢復:備份、遷移等。

3. 開發者和使用者

  • ROSE 的終端使用者:使用基於 ROSE 的工具 - 易於訪問教程、指南、常見問題解答、幫助等。
  • 使用 ROSE 構建自定義工具的開發者 - 易於訪問開發資源

4. 合作者

  • 與我們正式合作的人員

解決方案

[編輯 | 編輯原始碼]

我們正在嘗試使用 Wordpress 作為 http://rosecompiler.org 的內容管理系統。

網站的願望清單

對於贊助商

  • 關於 ROSE 團隊的資格:員工、博士後
    • 解決方案:關於我們頁面
  • 成功的跟蹤記錄
    • 出版物:易於更新最新出版物。
    • 簡報和演講:易於上傳最新的研發幻燈片
    • 軟體版本:解決方案:釋出頁面顯示下載計數器、過去版本
  • 外展
    • 使用者統計:誰在使用 ROSE 做什麼:解決方案 -> 專用的使用者頁面
    • 實習計劃:每年,海報:解決方案 -> 專用的實習生頁面,易於更新研發海報等。
    • 教育專案:在編譯器課程中使用 ROSE
    • 合作者:分包合同等。
  • 當前專案:顯示活躍的研究/開發專案
    • 解決方案:專用的專案頁面
  • 致謝頁面:明確列出我們的贊助商並感謝他們

對於合作者

  • 專案管理:問題跟蹤等
    • 私有維基
  • 郵件列表
  • 原始碼:下載和回饋
  • 程式碼審查
  • 提案寫作
  • 論文寫作

對於終端使用者(開發者)

  • 下載
  • 使用 Git 倉庫
  • 查詢文件
  • 提交問題/錯誤報告、功能請求等。
  • 編寫文件:華夏公益教科書
[編輯 | 編輯原始碼]

http://codex.wordpress.org/Linking_Posts_Pages_and_Categories

嵌入文件

[編輯 | 編輯原始碼]
[gview file="http://xxx/wordpress/wp-content/uploads/2012/07/2010-Semantic-AwareAutomaticParallelizationofModernApplications-CPE.pdf"]

我們現在決定使用 Responsive 主題。

我們試圖利用行業標準的、開源的 Web 開發元件

自定義

[編輯 | 編輯原始碼]

主題選項:

1. 登入到您的 wordpress/wp-admin URL

2. 選擇外觀選單項

3. 選擇主題選項子選單項

在這個螢幕中,您可以使用預設選項配置您的主題。

模板 - 髒亂的、細緻的自定義

1. 登入到您的 wordpress/wp-admin URL

2. 選擇外觀選單項

3. 選擇編輯器子選單項

在這個編輯器螢幕中,您可以自定義主題的模板檔案,例如 php 和 css

版本控制

[編輯 | 編輯原始碼]

安裝 Dion Hulse 的 Revisions Control Pluginhttp://wordpress.org/extend/plugins/revision-control/

1. 登入到您的 wordpress/wp-admin URL

2. 選擇外掛選單項

3. 選擇新增新內容子選單項

4. 搜尋版本控制外掛

5. 點選 Dion Hulse 的Revision Control立即安裝

調整版本設定:

1. 登入到您的 wordpress/wp-admin URL

2. 選擇設定選單項

3. 選擇版本子選單項

4. 進行設定調整,然後點選儲存更改

檢視帖子/頁面的版本:

1. 登入到您的 wordpress/wp-admin URL

2. 選擇帖子頁面選單項

3. 選擇您的帖子頁面之一

4. 點選螢幕頂部的螢幕選項選項卡以配置當前螢幕。

5. 選中帖子版本複選框。螢幕底部附近會出現一個小部件,您現在可以在其中管理帖子的版本。

如何遷移 Wordpress 網站

[編輯 | 編輯原始碼]

http://codex.wordpress.org/Moving_WordPress

如何將 Wordpress 放入子目錄,但仍從 Web 根路徑執行它

故障排除

[編輯 | 編輯原始碼]

請求FTP資訊

[編輯 | 編輯原始碼]

您需要確保需要寫入檔案系統的PHP指令碼與Apache執行的同一使用者擁有相同的許可權。

http://www.chrisabernethy.com/why-wordpress-asks-connection-info/

解決方案

除錯模式

[編輯 | 編輯原始碼]

在以下位置開啟Wordpress(PHP)除錯wordpress/wp-config.php:

define('WP_DEBUG', true);

空白頁

[編輯 | 編輯原始碼]

在一些操作之後出現問題git在我們版本控制的wordpress/安裝。

  $ git stash
  $ git stash apply

git-stash似乎改變了檔案的許可權,因此出現了“許可權被拒絕” PHP錯誤。解決方案是簡單地將許可權修復為可由Web伺服器(例如,www-data)讀取。

我們測試/開發安裝的hack是

  $ sudo chmod -R 777 wordpress/  # :-)

待辦事項

[編輯 | 編輯原始碼]

Wordpress:

Any updates on resolving this issue?

--

**Update**: I found the problem with my installation (might just because I'm a Wordpress newbie): I was not including the bootstrap-collapse javascript.

## Solution Attempt #1

Edit **wp-bootstrap: Theme Functions (functions.php)** to add `<script>` tags to load `bootstrap-collapse.js`:

Appearance > Editor > Theme Functions *(functions.php)*

```php
function my_scripts_method() {
  // bootstrap-collapse requires bootstrap-transition.js
  wp_deregister_script('bootstrap-transition');
  wp_register_script('bootstrap-transition', 'http://twitter.github.com/bootstrap/assets/js/bootstrap-transition.js');
  wp_enqueue_script('bootstrap-transition');

  wp_deregister_script('bootstrap-collapse');
  wp_register_script('bootstrap-collapse', 'http://twitter.github.com/bootstrap/assets/js/bootstrap-collapse.js');
  wp_enqueue_script('bootstrap-collapse');
}
add_action('wp_enqueue_scripts', 'my_scripts_method');
```

*Note*: this is probably not the right way to do this, but it works.

## Solution Attempt #2

Edit **wp-bootstrap: Header (header.php)** to make `navbar` collapsed by default and remove toggle button:

1. Add `collapse` class to the `div`:

    ```html
    <div class="nav-collapse collapse">
        <?php bones_main_nav(); // Adjust using Menus in Wordpress Admin ?>
    </div>
    ```

2. Remove toggle button, i.e. remove this code:

    ```html
    <a class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
        <span class="icon-bar"></span>
        <span class="icon-bar"></span>
        <span class="icon-bar"></span>
    </a>
```
  • 電子郵件通知(帖子+頁面): ???

低優先順序

[編輯 | 編輯原始碼]

示例網站

[編輯 | 編輯原始碼]

我們在這裡收集了一些使用WordPress構建的網站,大部分來自http://wordpress.org/showcase

外掛

華夏公益教科書